Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ def transcribe(audio):
|
|
12 |
result = model.transcribe(audio)
|
13 |
return result["text"]
|
14 |
|
|
|
|
|
15 |
# Corrected Gradio UI
|
16 |
gr.Interface(
|
17 |
fn=transcribe,
|
@@ -19,4 +21,8 @@ gr.Interface(
|
|
19 |
outputs="text",
|
20 |
title="Whisper Speech-to-Text",
|
21 |
description="Click 'Record', speak into the microphone, then stop recording to get text output.",
|
|
|
22 |
).launch()
|
|
|
|
|
|
|
|
12 |
result = model.transcribe(audio)
|
13 |
return result["text"]
|
14 |
|
15 |
+
|
16 |
+
|
17 |
# Corrected Gradio UI
|
18 |
gr.Interface(
|
19 |
fn=transcribe,
|
|
|
21 |
outputs="text",
|
22 |
title="Whisper Speech-to-Text",
|
23 |
description="Click 'Record', speak into the microphone, then stop recording to get text output.",
|
24 |
+
allow_flagging="never"
|
25 |
).launch()
|
26 |
+
|
27 |
+
app.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
28 |
+
|