mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-07 03:35:41 +00:00
fixed ollama vailablility checker
This commit is contained in:
parent
09d7d4d6bd
commit
b1de04be5c
8
app.py
8
app.py
@ -232,8 +232,8 @@ def create_interface():
|
|||||||
gr.Warning(
|
gr.Warning(
|
||||||
"Ollama is not available. Please check your Ollama server."
|
"Ollama is not available. Please check your Ollama server."
|
||||||
)
|
)
|
||||||
return {"value": False, "visible": False}
|
return False, False
|
||||||
return {"value": checked, "visible": checked}
|
return checked, checked
|
||||||
|
|
||||||
summarize_checkbox.change(
|
summarize_checkbox.change(
|
||||||
fn=toggle_summary,
|
fn=toggle_summary,
|
||||||
@ -337,8 +337,8 @@ def create_interface():
|
|||||||
gr.Warning(
|
gr.Warning(
|
||||||
"Ollama is not available. Please check your Ollama server."
|
"Ollama is not available. Please check your Ollama server."
|
||||||
)
|
)
|
||||||
return {"value": False, "visible": False}
|
return False, False
|
||||||
return {"value": checked, "visible": checked}
|
return checked, checked
|
||||||
|
|
||||||
yt_summarize_checkbox.change(
|
yt_summarize_checkbox.change(
|
||||||
fn=toggle_yt_summary,
|
fn=toggle_yt_summary,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user