Spaces:
Sleeping
Sleeping
Update webui/app.py
Browse files- webui/app.py +2 -2
webui/app.py
CHANGED
|
@@ -407,9 +407,9 @@ with gr.Blocks(title=i18n("ViralCutter WebUI"), theme=gr.themes.Default(primary_
|
|
| 407 |
|
| 408 |
def on_source_change(source):
|
| 409 |
if source == "YouTube URL":
|
| 410 |
-
return gr.update(visible=
|
| 411 |
elif source == "Upload Video":
|
| 412 |
-
return gr.update(visible=
|
| 413 |
else:
|
| 414 |
# Load projects
|
| 415 |
projs = library.get_existing_projects()
|
|
|
|
| 407 |
|
| 408 |
def on_source_change(source):
|
| 409 |
if source == "YouTube URL":
|
| 410 |
+
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(value="Full")
|
| 411 |
elif source == "Upload Video":
|
| 412 |
+
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True), gr.update(value="Full")
|
| 413 |
else:
|
| 414 |
# Load projects
|
| 415 |
projs = library.get_existing_projects()
|