Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model = BlipForQuestionAnswering.from_pretrained("Salesforce/blip-vqa-base")
|
|
8 |
processor = AutoProcessor.from_pretrained("Salesforce/blip-vqa-base")
|
9 |
|
10 |
# Set your OpenAI API key
|
11 |
-
openai.api_key = "
|
12 |
|
13 |
# Function to generate the initial answer with BLIP and expand it with OpenAI API
|
14 |
def qna(image, question):
|
|
|
8 |
processor = AutoProcessor.from_pretrained("Salesforce/blip-vqa-base")
|
9 |
|
10 |
# Set your OpenAI API key
|
11 |
+
openai.api_key = "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" # Replace with your OpenAI API key
|
12 |
|
13 |
# Function to generate the initial answer with BLIP and expand it with OpenAI API
|
14 |
def qna(image, question):
|