Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1248,6 +1248,13 @@ def launch_ui(demo_mode=False):
|
|
| 1248 |
else:
|
| 1249 |
return ""
|
| 1250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1251 |
if not demo_mode:
|
| 1252 |
inputs.extend([
|
| 1253 |
gr.components.Dropdown(choices=["huggingface", "openai", "anthropic", "cohere", "groq", "llama", "kobold", "ooba"], value="huggingface", label="API Name"),
|
|
@@ -1256,13 +1263,6 @@ def launch_ui(demo_mode=False):
|
|
| 1256 |
gr.components.Checkbox(value=False, label="Download Video")
|
| 1257 |
])
|
| 1258 |
|
| 1259 |
-
inputs = [
|
| 1260 |
-
gr.components.Textbox(label="URL"),
|
| 1261 |
-
gr.components.Number(value=2, label="Number of Speakers"),
|
| 1262 |
-
gr.components.Dropdown(choices=whisper_models, value="small.en", label="Whisper Model"),
|
| 1263 |
-
gr.components.Number(value=0, label="Offset")
|
| 1264 |
-
]
|
| 1265 |
-
|
| 1266 |
iface = gr.Interface(
|
| 1267 |
fn=lambda *args: process_url(*args, demo_mode=demo_mode),
|
| 1268 |
inputs=inputs,
|
|
|
|
| 1248 |
else:
|
| 1249 |
return ""
|
| 1250 |
|
| 1251 |
+
inputs = [
|
| 1252 |
+
gr.components.Textbox(label="URL"),
|
| 1253 |
+
gr.components.Number(value=2, label="Number of Speakers"),
|
| 1254 |
+
gr.components.Dropdown(choices=whisper_models, value="small.en", label="Whisper Model"),
|
| 1255 |
+
gr.components.Number(value=0, label="Offset")
|
| 1256 |
+
]
|
| 1257 |
+
|
| 1258 |
if not demo_mode:
|
| 1259 |
inputs.extend([
|
| 1260 |
gr.components.Dropdown(choices=["huggingface", "openai", "anthropic", "cohere", "groq", "llama", "kobold", "ooba"], value="huggingface", label="API Name"),
|
|
|
|
| 1263 |
gr.components.Checkbox(value=False, label="Download Video")
|
| 1264 |
])
|
| 1265 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1266 |
iface = gr.Interface(
|
| 1267 |
fn=lambda *args: process_url(*args, demo_mode=demo_mode),
|
| 1268 |
inputs=inputs,
|