Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,10 @@ def extract_and_summarize(image):
|
|
34 |
]
|
35 |
|
36 |
# Call GPT-4 API for summarization
|
37 |
-
response =
|
38 |
model="gpt-4o",
|
39 |
messages=prompt,
|
|
|
40 |
max_tokens=300,
|
41 |
)
|
42 |
|
|
|
34 |
]
|
35 |
|
36 |
# Call GPT-4 API for summarization
|
37 |
+
response = client.chat.completions.create(
|
38 |
model="gpt-4o",
|
39 |
messages=prompt,
|
40 |
+
temperature=0.0,
|
41 |
max_tokens=300,
|
42 |
)
|
43 |
|