manu commited on
Commit
d5f93ec
·
verified ·
1 Parent(s): 4caaaa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.env.get("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.
 
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.