Luigi commited on
Commit
e792db9
·
1 Parent(s): fbecde0

bugifx on sensevoice inference

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- yield from _transcribe_sense_cpu_stream(model_id, language, audio_path, enable_punct)
 
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 = """