Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def process_files_fixed(image_path, page_identifier, error_pages):
|
|
| 101 |
"""
|
| 102 |
|
| 103 |
payload = {
|
| 104 |
-
"model": "gpt-4-
|
| 105 |
"messages": [
|
| 106 |
{
|
| 107 |
"role": "user",
|
|
@@ -111,7 +111,7 @@ def process_files_fixed(image_path, page_identifier, error_pages):
|
|
| 111 |
"text": prompt
|
| 112 |
},
|
| 113 |
{
|
| 114 |
-
"type": "
|
| 115 |
"image_url": f"data:image/jpeg;base64,{base64_image}"
|
| 116 |
}
|
| 117 |
]
|
|
|
|
| 101 |
"""
|
| 102 |
|
| 103 |
payload = {
|
| 104 |
+
"model": "gpt-4-vision-preview",
|
| 105 |
"messages": [
|
| 106 |
{
|
| 107 |
"role": "user",
|
|
|
|
| 111 |
"text": prompt
|
| 112 |
},
|
| 113 |
{
|
| 114 |
+
"type": "image_url",
|
| 115 |
"image_url": f"data:image/jpeg;base64,{base64_image}"
|
| 116 |
}
|
| 117 |
]
|