Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -413,7 +413,7 @@ def identify_headers_and_save_excel(pdf_path, model, llm_prompt):
|
|
| 413 |
result = identify_headers_with_openrouter(pdf_path, model, llm_prompt)
|
| 414 |
|
| 415 |
if not result:
|
| 416 |
-
|
| 417 |
df = pd.DataFrame(result)
|
| 418 |
|
| 419 |
# Save Excel to a file on disk
|
|
|
|
| 413 |
result = identify_headers_with_openrouter(pdf_path, model, llm_prompt)
|
| 414 |
|
| 415 |
if not result:
|
| 416 |
+
return None
|
| 417 |
df = pd.DataFrame(result)
|
| 418 |
|
| 419 |
# Save Excel to a file on disk
|