Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def generate_checklist(pdf_file):
|
|
| 40 |
temperature=0.3,
|
| 41 |
max_tokens=800
|
| 42 |
)
|
| 43 |
-
|
| 44 |
except Exception as e:
|
| 45 |
return f"Error generating checklist: {str(e)}"
|
| 46 |
|
|
|
|
| 40 |
temperature=0.3,
|
| 41 |
max_tokens=800
|
| 42 |
)
|
| 43 |
+
checklist = response["choices"][0]["message"]["content"]
|
| 44 |
except Exception as e:
|
| 45 |
return f"Error generating checklist: {str(e)}"
|
| 46 |
|