Spaces:
Running
Running
Update appImage.py
Browse files- appImage.py +1 -1
appImage.py
CHANGED
@@ -80,7 +80,7 @@ def serve_home(request: Request):
|
|
80 |
vqa_processor = ViltProcessor.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
|
81 |
vqa_model = ViltForQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
|
82 |
captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
83 |
-
reader = easyocr.Reader(['en'])
|
84 |
|
85 |
# Determine which feature to use
|
86 |
def classify_question(question: str):
|
|
|
80 |
vqa_processor = ViltProcessor.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
|
81 |
vqa_model = ViltForQuestionAnswering.from_pretrained("dandelin/vilt-b32-finetuned-vqa")
|
82 |
captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
83 |
+
reader = easyocr.Reader(['en'], gpu=False, download_enabled=True)
|
84 |
|
85 |
# Determine which feature to use
|
86 |
def classify_question(question: str):
|