EmanHassan26 commited on
Commit
7fc1dcd
·
verified ·
1 Parent(s): 64a8cae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -184,7 +184,8 @@ def multimodal_rag_query(user_query, num_images_to_retrieve,RAG):
184
  with gr.Blocks() as demo:
185
  gr.Markdown("# 👁️ 4-Bit Vision-RAG Console")
186
  gr.Markdown("An optimized, low-VRAM interface utilizing **NF4 Quantization** for the VLM and local visual extraction via **Byaldi**.")
187
- RAG = gr.State(value=lambda:load_or_init_rag())
 
188
  with gr.Tabs():
189
  # TAB 1: RETRIEVAL & INFERENCE EXPLORATION
190
  with gr.TabItem("🔍 Query Explorer"):
 
184
  with gr.Blocks() as demo:
185
  gr.Markdown("# 👁️ 4-Bit Vision-RAG Console")
186
  gr.Markdown("An optimized, low-VRAM interface utilizing **NF4 Quantization** for the VLM and local visual extraction via **Byaldi**.")
187
+ RAG = gr.State(value=None)
188
+ RAG = load_or_init_rag()
189
  with gr.Tabs():
190
  # TAB 1: RETRIEVAL & INFERENCE EXPLORATION
191
  with gr.TabItem("🔍 Query Explorer"):