gauri-sharan commited on
Commit
ecba862
·
verified ·
1 Parent(s): 2be66f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, index_name=unique_index_name)
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)