Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,8 +73,8 @@ PDF pages:
|
|
| 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 |
)
|
|
|
|
| 73 |
{
|
| 74 |
"role": "user",
|
| 75 |
"content": (
|
| 76 |
+
[{"type": "text", "text": PROMPT.format(query=query)}] +
|
| 77 |
+
[{"type": "image_url",
|
| 78 |
"image_url": f"data:image/jpeg;base64,{im}"}
|
| 79 |
for im in base64_images]
|
| 80 |
)
|