mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-07 03:35:41 +00:00
fixed ollama dropdown
This commit is contained in:
parent
bb592bcc55
commit
91931bfbf1
4
app.py
4
app.py
@ -163,7 +163,7 @@ def create_interface():
|
|||||||
visible=False,
|
visible=False,
|
||||||
)
|
)
|
||||||
summarize_checkbox.change(
|
summarize_checkbox.change(
|
||||||
fn=lambda x: gr.Dropdown.update(visible=x),
|
fn=lambda x: {"visible": x},
|
||||||
inputs=[summarize_checkbox],
|
inputs=[summarize_checkbox],
|
||||||
outputs=[ollama_model_dropdown],
|
outputs=[ollama_model_dropdown],
|
||||||
)
|
)
|
||||||
@ -252,7 +252,7 @@ def create_interface():
|
|||||||
visible=False,
|
visible=False,
|
||||||
)
|
)
|
||||||
yt_summarize_checkbox.change(
|
yt_summarize_checkbox.change(
|
||||||
fn=lambda x: gr.Dropdown.update(visible=x),
|
fn=lambda x: {"visible": x},
|
||||||
inputs=[yt_summarize_checkbox],
|
inputs=[yt_summarize_checkbox],
|
||||||
outputs=[yt_ollama_model_dropdown],
|
outputs=[yt_ollama_model_dropdown],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user