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