rchrdgwr commited on
Commit
4d94c46
1 Parent(s): f4ce1d6

correct pdf type

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,10 +87,10 @@ async def on_chat_start():
87
  files = None
88
 
89
  # Wait for the user to upload a file
90
- while files == None:
91
  files = await cl.AskFileMessage(
92
  content="Please upload a .txt or .pdf file to begin!",
93
- accept=["text/plain", "pdf"],
94
  max_size_mb=2,
95
  timeout=180,
96
  ).send()
 
87
  files = None
88
 
89
  # Wait for the user to upload a file
90
+ while not files:
91
  files = await cl.AskFileMessage(
92
  content="Please upload a .txt or .pdf file to begin!",
93
+ accept=["text/plain", "application/pdf"],
94
  max_size_mb=2,
95
  timeout=180,
96
  ).send()