Themivito commited on
Commit
94b4fab
·
verified ·
1 Parent(s): 33bf71c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- return f"Error generating checklist: {str(e)}"
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