saja003 commited on
Commit
6def0df
·
verified ·
1 Parent(s): 619ae9c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import BlipForQuestionAnswering, AutoProcessor # For the pre-trained VQA model and processor
2
+ from PIL import Image # For image handling
3
+ import gradio as gr # For creating the interface
4
+ from gtts import gTTS # For converting text to speech
5
+ import os # For file handling
6
+
7
+ # Load the model and processor from Hugging Face
8
+ model = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-base")
9
+ processor = AutoProcessor.from_pretrained("Salesforce/blip-vqa-base")
10
+