Spaces:
Running
on
Zero
Running
on
Zero
bugifx on sensevoice inference
Browse files
app.py
CHANGED
@@ -296,7 +296,8 @@ def transcribe_sense_steam(model_id: str,
|
|
296 |
device_sel: str):
|
297 |
if device_sel == "GPU" and torch.cuda.is_available():
|
298 |
yield from _transcribe_sense_gpu_stream(model_id, language, audio_path, enable_punct)
|
299 |
-
|
|
|
300 |
|
301 |
# —————— Gradio UI ——————
|
302 |
DEMO_CSS = """
|
|
|
296 |
device_sel: str):
|
297 |
if device_sel == "GPU" and torch.cuda.is_available():
|
298 |
yield from _transcribe_sense_gpu_stream(model_id, language, audio_path, enable_punct)
|
299 |
+
else:
|
300 |
+
yield from _transcribe_sense_cpu_stream(model_id, language, audio_path, enable_punct)
|
301 |
|
302 |
# —————— Gradio UI ——————
|
303 |
DEMO_CSS = """
|