Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def live_transcribe_and_translate(stream, selected_language, model_type="base"):
|
|
57 |
interface = gr.Interface(
|
58 |
fn=live_transcribe_and_translate,
|
59 |
inputs=[
|
60 |
-
gr.Audio(
|
61 |
gr.Dropdown(label="Select Language", choices=["nl", "en"], value="en"),
|
62 |
gr.Dropdown(label="Select Model Type", choices=["tiny", "base", "small", "medium", "large"], value="base")
|
63 |
],
|
@@ -65,6 +65,7 @@ interface = gr.Interface(
|
|
65 |
title="Live Transcription and Translation"
|
66 |
)
|
67 |
|
|
|
68 |
if __name__ == '__main__':
|
69 |
# Launch the Gradio interface
|
70 |
interface.launch()
|
|
|
57 |
interface = gr.Interface(
|
58 |
fn=live_transcribe_and_translate,
|
59 |
inputs=[
|
60 |
+
gr.Audio(type="stream", streaming=True, label="Start Recording"), # Adjusted this line
|
61 |
gr.Dropdown(label="Select Language", choices=["nl", "en"], value="en"),
|
62 |
gr.Dropdown(label="Select Model Type", choices=["tiny", "base", "small", "medium", "large"], value="base")
|
63 |
],
|
|
|
65 |
title="Live Transcription and Translation"
|
66 |
)
|
67 |
|
68 |
+
|
69 |
if __name__ == '__main__':
|
70 |
# Launch the Gradio interface
|
71 |
interface.launch()
|