Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def query_gpt4o_mini(query, images):
|
|
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.
|
46 |
PROMPT = """
|
47 |
You are a smart assistant designed to answer questions about a PDF document.
|
48 |
You are given relevant information in the form of PDF pages. Use them to construct a response to the question, and cite your sources.
|
|
|
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.getenv("OPENAI_KEY"))
|
46 |
PROMPT = """
|
47 |
You are a smart assistant designed to answer questions about a PDF document.
|
48 |
You are given relevant information in the form of PDF pages. Use them to construct a response to the question, and cite your sources.
|