Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def ocr_and_extract(image, text_query):
|
|
41 |
)
|
42 |
|
43 |
# Perform the search query on the indexed image
|
44 |
-
results = rag_model.search(text_query, k=1
|
45 |
|
46 |
# Prepare the input for Qwen2-VL
|
47 |
image_data = Image.open(temp_image_path)
|
|
|
41 |
)
|
42 |
|
43 |
# Perform the search query on the indexed image
|
44 |
+
results = rag_model.search(text_query, k=1) # Removed index_name argument
|
45 |
|
46 |
# Prepare the input for Qwen2-VL
|
47 |
image_data = Image.open(temp_image_path)
|