Kazel
commited on
Commit
·
c575567
1
Parent(s):
5631337
lib
Browse files
app.py
CHANGED
@@ -294,7 +294,7 @@ def create_ui():
|
|
294 |
with gr.Tab("AI Model Settings"): #deletion of collections, changing of model parameters etc
|
295 |
with gr.Column():
|
296 |
# Button to delete (TBD)
|
297 |
-
hfchoice = gr.Dropdown(app.list_downloaded_hf_models(),value=os.environ['colpali'], label="Visual
|
298 |
ollamachoice = gr.Dropdown(app.list_downloaded_ollama_models(),value=os.environ['ollama'],label="Secondary Visual Retrieval-Augmented Generation (RAG) Model")
|
299 |
flash = gr.Dropdown(["Enabled","Disabled"], value = "Enabled",label ="Flash Attention 2.0 Acceleration")
|
300 |
temp = gr.Slider(
|
@@ -320,7 +320,7 @@ def create_ui():
|
|
320 |
inputs=[state, query_input],
|
321 |
outputs=[path,images, llm_answer]
|
322 |
)
|
323 |
-
|
324 |
delete_button.click(
|
325 |
fn=app.delete,
|
326 |
inputs=[choice],
|
@@ -338,6 +338,7 @@ def create_ui():
|
|
338 |
inputs=[hfchoice, ollamachoice,flash,temp],
|
339 |
outputs=[status2]
|
340 |
)
|
|
|
341 |
|
342 |
return demo
|
343 |
|
|
|
294 |
with gr.Tab("AI Model Settings"): #deletion of collections, changing of model parameters etc
|
295 |
with gr.Column():
|
296 |
# Button to delete (TBD)
|
297 |
+
hfchoice = gr.Dropdown(app.list_downloaded_hf_models(),value=os.environ['colpali'], label="Primary Visual Model")
|
298 |
ollamachoice = gr.Dropdown(app.list_downloaded_ollama_models(),value=os.environ['ollama'],label="Secondary Visual Retrieval-Augmented Generation (RAG) Model")
|
299 |
flash = gr.Dropdown(["Enabled","Disabled"], value = "Enabled",label ="Flash Attention 2.0 Acceleration")
|
300 |
temp = gr.Slider(
|
|
|
320 |
inputs=[state, query_input],
|
321 |
outputs=[path,images, llm_answer]
|
322 |
)
|
323 |
+
"""
|
324 |
delete_button.click(
|
325 |
fn=app.delete,
|
326 |
inputs=[choice],
|
|
|
338 |
inputs=[hfchoice, ollamachoice,flash,temp],
|
339 |
outputs=[status2]
|
340 |
)
|
341 |
+
"""
|
342 |
|
343 |
return demo
|
344 |
|