mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-06 19:25:39 +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(
|
||||
"Ollama is not available. Please check your Ollama server."
|
||||
)
|
||||
return {"value": False, "visible": False}
|
||||
return {"value": checked, "visible": checked}
|
||||
return False, False
|
||||
return checked, checked
|
||||
|
||||
summarize_checkbox.change(
|
||||
fn=toggle_summary,
|
||||
@ -337,8 +337,8 @@ def create_interface():
|
||||
gr.Warning(
|
||||
"Ollama is not available. Please check your Ollama server."
|
||||
)
|
||||
return {"value": False, "visible": False}
|
||||
return {"value": checked, "visible": checked}
|
||||
return False, False
|
||||
return checked, checked
|
||||
|
||||
yt_summarize_checkbox.change(
|
||||
fn=toggle_yt_summary,
|
||||
|
Loading…
x
Reference in New Issue
Block a user