Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,14 +67,14 @@ Query: {query}
|
|
| 67 |
PDF pages:
|
| 68 |
""".strip()
|
| 69 |
|
| 70 |
-
response = client.
|
| 71 |
-
model="gpt-
|
| 72 |
messages=[
|
| 73 |
{
|
| 74 |
"role": "user",
|
| 75 |
"content": (
|
| 76 |
-
[{"type": "
|
| 77 |
-
[{"type": "
|
| 78 |
"image_url": f"data:image/jpeg;base64,{im}"}
|
| 79 |
for im in base64_images]
|
| 80 |
)
|
|
|
|
| 67 |
PDF pages:
|
| 68 |
""".strip()
|
| 69 |
|
| 70 |
+
response = client.responses.create(
|
| 71 |
+
model="gpt-5",
|
| 72 |
messages=[
|
| 73 |
{
|
| 74 |
"role": "user",
|
| 75 |
"content": (
|
| 76 |
+
[{"type": "input_text", "text": PROMPT.format(query=query)}] +
|
| 77 |
+
[{"type": "input_image",
|
| 78 |
"image_url": f"data:image/jpeg;base64,{im}"}
|
| 79 |
for im in base64_images]
|
| 80 |
)
|