Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
|
|
|
| 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"):
|