Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,12 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
def transcribe:
|
| 3 |
+
gr.Interface.load("models/dima806/speech-accent-classification").launch()
|
| 4 |
+
iface = gr.Interface(
|
| 5 |
+
fn=transcribe,
|
| 6 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
| 7 |
+
outputs="text",
|
| 8 |
+
title="Whisper Small Hindi",
|
| 9 |
+
description="Realtime demo for Hindi speech recognition using a fine-tuned Whisper small model.",
|
| 10 |
+
)
|
| 11 |
|
| 12 |
+
iface.launch()
|