Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,8 @@ def transcribe(audio):
|
|
| 10 |
return text, generated_text
|
| 11 |
|
| 12 |
with gr.Blocks() as demo:
|
| 13 |
-
gr.
|
| 14 |
-
|
| 15 |
-
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model & text generation with Swedish GPT.",
|
| 16 |
-
)
|
| 17 |
with gr.TabItem("Upload from disk"):
|
| 18 |
upload_file = gr.Audio(source="upload", type="filepath",label="Upload from disk")
|
| 19 |
upload_button = gr.Button("Submit for recognition")
|
|
|
|
| 10 |
return text, generated_text
|
| 11 |
|
| 12 |
with gr.Blocks() as demo:
|
| 13 |
+
gr.Markdown("#Whisper Small Swedish + Swedish GPT")
|
| 14 |
+
gr.Markdown("Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model & text generation with Swedish GPT.")
|
|
|
|
|
|
|
| 15 |
with gr.TabItem("Upload from disk"):
|
| 16 |
upload_file = gr.Audio(source="upload", type="filepath",label="Upload from disk")
|
| 17 |
upload_button = gr.Button("Submit for recognition")
|