mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-05 18:55:39 +00:00
bugfix
This commit is contained in:
parent
2f11b6c41b
commit
b99f47320b
12
app.py
12
app.py
@ -236,7 +236,11 @@ def create_interface():
|
||||
return checked
|
||||
|
||||
def update_model_visibility(visible):
|
||||
return gr.Dropdown.update(visible=visible)
|
||||
if visible:
|
||||
return gr.Dropdown.update(
|
||||
visible=True, value=DEFAULT_OLLAMA_MODEL
|
||||
)
|
||||
return gr.Dropdown.update(visible=False)
|
||||
|
||||
summarize_checkbox.change(
|
||||
fn=toggle_summary,
|
||||
@ -348,7 +352,11 @@ def create_interface():
|
||||
return checked
|
||||
|
||||
def update_yt_model_visibility(visible):
|
||||
return gr.Dropdown.update(visible=visible)
|
||||
if visible:
|
||||
return gr.Dropdown.update(
|
||||
visible=True, value=DEFAULT_OLLAMA_MODEL
|
||||
)
|
||||
return gr.Dropdown.update(visible=False)
|
||||
|
||||
yt_summarize_checkbox.change(
|
||||
fn=toggle_yt_summary,
|
||||
|
Loading…
x
Reference in New Issue
Block a user