IFMedTechdemo commited on
Commit
5330d99
·
verified ·
1 Parent(s): 1d84a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -172,7 +172,7 @@ with gr.Blocks(css=css, title="Multi-Engine TTS – Zero-GPU") as demo:
172
  with gr.Column(elem_id="col-left"):
173
  engine = gr.Radio(label="Engine",
174
  choices=[e for e in ["kokoro","veena","pyttsx3"]
175
- if globals()[e.upper()+"_OK"]],
176
  value="kokoro" if KOKORO_OK else
177
  "veena" if VEENA_OK else "pyttsx3")
178
 
 
172
  with gr.Column(elem_id="col-left"):
173
  engine = gr.Radio(label="Engine",
174
  choices=[e for e in ["kokoro","veena","pyttsx3"]
175
+ if globals().get({"pyttsx3":"PYT_OK"}.get(e,e.upper()+"_OK"), False)],
176
  value="kokoro" if KOKORO_OK else
177
  "veena" if VEENA_OK else "pyttsx3")
178