Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        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 | 
         
            -
             
     | 
| 24 | 
         
            -
            reader = easyocr.Reader(['en', 'fr' 
     | 
| 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()
         
     |