RafaG commited on
Commit
eb02b58
·
verified ·
1 Parent(s): 6f1f008

Update webui/app.py

Browse files
Files changed (1) hide show
  1. webui/app.py +2 -2
webui/app.py CHANGED
@@ -426,7 +426,7 @@ with gr.Blocks(title=i18n("ViralCutter WebUI"), theme=gr.themes.Default(primary_
426
  max_dur_input = gr.Number(label=i18n("Max Duration (s)"), value=90)
427
  with gr.Column(scale=1):
428
  with gr.Row():
429
- ai_backend_input = gr.Dropdown(choices=[(i18n("Gemini"), "gemini"), (i18n("G4F"), "g4f"), (i18n("Local (GGUF)"), "local"), (i18n("Manual"), "manual")], label=i18n("AI Backend"), value="gemini", scale=2)
430
  api_key_input = gr.Textbox(label=i18n("Gemini API Key"), type="password", scale=3)
431
 
432
  # New Dynamic Inputs
@@ -453,7 +453,7 @@ with gr.Blocks(title=i18n("ViralCutter WebUI"), theme=gr.themes.Default(primary_
453
  new_choices = G4F_MODELS
454
  new_val = G4F_MODELS[5]
455
  new_chunk = 70000
456
- elif backend == "local (Off HF)":
457
  models = get_local_models()
458
  new_choices = models if models else [i18n("No models found")]
459
  new_val = new_choices[0]
 
426
  max_dur_input = gr.Number(label=i18n("Max Duration (s)"), value=90)
427
  with gr.Column(scale=1):
428
  with gr.Row():
429
+ ai_backend_input = gr.Dropdown(choices=[(i18n("Gemini"), "gemini"), (i18n("G4F"), "g4f"), (i18n("Local (GGUF) (Off HF)"), "local"), (i18n("Manual"), "manual")], label=i18n("AI Backend"), value="gemini", scale=2)
430
  api_key_input = gr.Textbox(label=i18n("Gemini API Key"), type="password", scale=3)
431
 
432
  # New Dynamic Inputs
 
453
  new_choices = G4F_MODELS
454
  new_val = G4F_MODELS[5]
455
  new_chunk = 70000
456
+ elif backend == "local":
457
  models = get_local_models()
458
  new_choices = models if models else [i18n("No models found")]
459
  new_val = new_choices[0]