Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ vqa_model = ViltForQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetune
|
|
20 |
captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
21 |
|
22 |
# Load EasyOCR reader
|
23 |
-
reader = easyocr.Reader(['en'])
|
24 |
|
25 |
def classify_question(question: str):
|
26 |
question_lower = question.lower()
|
|
|
20 |
captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
21 |
|
22 |
# Load EasyOCR reader
|
23 |
+
reader = easyocr.Reader(['en', 'fr', 'ar'])
|
24 |
|
25 |
def classify_question(question: str):
|
26 |
question_lower = question.lower()
|