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