acpotts commited on
Commit
5314488
·
1 Parent(s): 5b85230

Add 'application/pdf' to 'accept' parameter

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,8 +72,8 @@ async def on_chat_start():
72
  # Wait for the user to upload a file
73
  while files == None:
74
  files = await cl.AskFileMessage(
75
- content="Please upload a Text File file to begin!",
76
- accept=["text/plain"],
77
  max_size_mb=2,
78
  timeout=180,
79
  ).send()
 
72
  # Wait for the user to upload a file
73
  while files == None:
74
  files = await cl.AskFileMessage(
75
+ content="Please upload a Text file or a PDF to begin!",
76
+ accept=["text/plain", "application/pdf"],
77
  max_size_mb=2,
78
  timeout=180,
79
  ).send()