Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ RAG, model, processor = load_models()
|
|
20 |
# Skip RAG search and use Qwen2VL for direct OCR
|
21 |
def ocr_and_search(image, keyword):
|
22 |
# Hardcoded query to extract text in English, Sanskrit, and Hindi
|
23 |
-
text_query = "Extract all the text in
|
24 |
|
25 |
# Prepare message for Qwen model
|
26 |
messages = [
|
|
|
20 |
# Skip RAG search and use Qwen2VL for direct OCR
|
21 |
def ocr_and_search(image, keyword):
|
22 |
# Hardcoded query to extract text in English, Sanskrit, and Hindi
|
23 |
+
text_query = "Extract all the text in Sanskrit and English from the image."
|
24 |
|
25 |
# Prepare message for Qwen model
|
26 |
messages = [
|