Update app.py
Browse files
app.py
CHANGED
|
@@ -303,7 +303,7 @@ Organize the result in JSON format as follows:
|
|
| 303 |
client,
|
| 304 |
messages=messages,
|
| 305 |
engine_name="gpt-4o-mini", # gpt-3.5-turbo
|
| 306 |
-
max_tokens=
|
| 307 |
requests_per_minute = 20,
|
| 308 |
response_format={"type":"json_object"},
|
| 309 |
)
|
|
@@ -311,7 +311,7 @@ Organize the result in JSON format as follows:
|
|
| 311 |
|
| 312 |
results = []
|
| 313 |
for paper_data, response in zip(paper_data_list, responses):
|
| 314 |
-
print(response)
|
| 315 |
response = json.loads(response)
|
| 316 |
results.append({"title": paper_data["title"], "content": response["revised_text"]})
|
| 317 |
return results
|
|
|
|
| 303 |
client,
|
| 304 |
messages=messages,
|
| 305 |
engine_name="gpt-4o-mini", # gpt-3.5-turbo
|
| 306 |
+
max_tokens=5000, # 32
|
| 307 |
requests_per_minute = 20,
|
| 308 |
response_format={"type":"json_object"},
|
| 309 |
)
|
|
|
|
| 311 |
|
| 312 |
results = []
|
| 313 |
for paper_data, response in zip(paper_data_list, responses):
|
| 314 |
+
# print(response)
|
| 315 |
response = json.loads(response)
|
| 316 |
results.append({"title": paper_data["title"], "content": response["revised_text"]})
|
| 317 |
return results
|