Add 'application/pdf' to 'accept' parameter
Browse files
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
|
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()
|