Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def query_gpt4o_mini(query, images):
|
|
41 |
"""Calls OpenAI's GPT-4o-mini with the query and image data."""
|
42 |
from openai import OpenAI
|
43 |
|
44 |
-
base64_images = [encode_image_to_base64(image) for image in images]
|
45 |
client = OpenAI(api_key=os.env.get("OPENAI_KEY"))
|
46 |
PROMPT = """
|
47 |
You are a smart assistant designed to answer questions about a PDF document.
|
|
|
41 |
"""Calls OpenAI's GPT-4o-mini with the query and image data."""
|
42 |
from openai import OpenAI
|
43 |
|
44 |
+
base64_images = [encode_image_to_base64(image[0]) for image in images]
|
45 |
client = OpenAI(api_key=os.env.get("OPENAI_KEY"))
|
46 |
PROMPT = """
|
47 |
You are a smart assistant designed to answer questions about a PDF document.
|