ikraamkb commited on
Commit
461e409
·
verified ·
1 Parent(s): 3755c16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ vqa_model = ViltForQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetune
20
  # Load image captioning model
21
  captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
22
 
23
- # Load EasyOCR reader with English, French, Arabic
24
- reader = easyocr.Reader(['en', 'fr', 'ar'])
25
 
26
  def classify_question(question: str):
27
  question_lower = question.lower()
 
20
  # Load image captioning model
21
  captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
22
 
23
+
24
+ reader = easyocr.Reader(['en', 'fr'])
25
 
26
  def classify_question(question: str):
27
  question_lower = question.lower()