Spaces:
Sleeping
Sleeping
Commit
·
b325b66
1
Parent(s):
5449122
Fixes error
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -85,7 +85,7 @@ async def on_chat_start():
|
|
| 85 |
# Wait for the user to upload a file
|
| 86 |
while files == None:
|
| 87 |
files = await cl.AskFileMessage(
|
| 88 |
-
content="Please upload a Text File file to begin!",
|
| 89 |
accept=["text/plain", "application/pdf"],
|
| 90 |
max_size_mb=2,
|
| 91 |
timeout=180,
|
|
|
|
| 85 |
# Wait for the user to upload a file
|
| 86 |
while files == None:
|
| 87 |
files = await cl.AskFileMessage(
|
| 88 |
+
content="Please upload a Text or PDF File file to begin!",
|
| 89 |
accept=["text/plain", "application/pdf"],
|
| 90 |
max_size_mb=2,
|
| 91 |
timeout=180,
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
numpy
|
| 2 |
chainlit==0.7.700
|
| 3 |
-
openai
|
|
|
|
|
|
| 1 |
numpy
|
| 2 |
chainlit==0.7.700
|
| 3 |
+
openai
|
| 4 |
+
PyPDF2
|