Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def transcribe(audio):
|
| 4 |
-
return "Демо‑
|
| 5 |
|
| 6 |
iface = gr.Interface(
|
| 7 |
fn=transcribe,
|
| 8 |
-
inputs=gr.Audio(
|
| 9 |
outputs=gr.Textbox(label="📄 Результат"),
|
| 10 |
title="SeamlessStreaming CPU Demo"
|
| 11 |
)
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def transcribe(audio):
|
| 4 |
+
return "Демо‑режим на CPU — звук не обрабатывается."
|
| 5 |
|
| 6 |
iface = gr.Interface(
|
| 7 |
fn=transcribe,
|
| 8 |
+
inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
| 9 |
outputs=gr.Textbox(label="📄 Результат"),
|
| 10 |
title="SeamlessStreaming CPU Demo"
|
| 11 |
)
|
| 12 |
+
|
| 13 |
+
if __name__ == "__main__":
|
| 14 |
+
iface.launch()
|
| 15 |
+
|