| import gradio as gr | |
| def transcribe(audio): | |
| return "Демо‑режим на CPU — звук не обрабатывается." | |
| iface = gr.Interface( | |
| fn=transcribe, | |
| inputs=gr.Audio(sources=["microphone"], type="filepath"), | |
| outputs=gr.Textbox(label="📄 Результат"), | |
| title="SeamlessStreaming CPU Demo", | |
| description="Простое демо на CPU" | |
| ) | |
| if __name__ == "__main__": | |
| iface.launch() | |