Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,27 @@ import os
|
|
2 |
import gradio as gr
|
3 |
|
4 |
read_key = os.environ.get('HF_TOKEN', None)
|
|
|
5 |
|
6 |
-
with gr.Blocks() as demo:
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
read_key = os.environ.get('HF_TOKEN', None)
|
5 |
+
api = gr.load("aaqibsaeed/WbjkkRJBPxkB", hf_token=read_key)
|
6 |
|
7 |
+
with gr.Blocks(title="Report Generation - EnvisionIO") as demo:
|
8 |
+
description = "Report Generation - EnvisionIO"
|
9 |
+
article = ""
|
10 |
+
waveform_options=gr.WaveformOptions(
|
11 |
+
waveform_color="#01C6FF",
|
12 |
+
waveform_progress_color="#0066B4",
|
13 |
+
skip_length=1,
|
14 |
+
show_controls=False,
|
15 |
+
)
|
16 |
+
simple_transcribe = gr.Interface(fn=api,
|
17 |
+
description=description,
|
18 |
+
article=article,
|
19 |
+
inputs=[
|
20 |
+
gr.Audio(sources=["upload"], type="filepath",
|
21 |
+
label="Input", waveform_options = waveform_options),
|
22 |
+
], outputs=[
|
23 |
+
gr.Text(label="Report"),
|
24 |
+
],
|
25 |
+
)
|
26 |
+
|
27 |
+
if __name__ == "__main__":
|
28 |
+
demo.launch(show_api=False)
|