marries commited on
Commit
f73b1d5
·
verified ·
1 Parent(s): 7235309

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,12 +1,15 @@
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(source="microphone", type="filepath"),
9
  outputs=gr.Textbox(label="📄 Результат"),
10
  title="SeamlessStreaming CPU Demo"
11
  )
12
- iface.launch()
 
 
 
 
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
+