correct pdf type
Browse files
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
|
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()
|