Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,14 +42,14 @@ async def on_chat_start():
|
|
| 42 |
content="Pick an action!",
|
| 43 |
actions=[
|
| 44 |
cl.Action(name="Question", value="question", label="Ask a question"),
|
| 45 |
-
cl.Action(name="File", value="file", label="Upload a file"),
|
| 46 |
],
|
| 47 |
).send()
|
| 48 |
|
| 49 |
if res and res.get("value") == "file":
|
| 50 |
files = None
|
| 51 |
files = await cl.AskFileMessage(
|
| 52 |
-
content="Please upload a Text
|
| 53 |
accept=["text/plain", "application/pdf"],
|
| 54 |
max_size_mb=12,
|
| 55 |
).send()
|
|
|
|
| 42 |
content="Pick an action!",
|
| 43 |
actions=[
|
| 44 |
cl.Action(name="Question", value="question", label="Ask a question"),
|
| 45 |
+
cl.Action(name="File", value="file", label="Upload a file or URL"),
|
| 46 |
],
|
| 47 |
).send()
|
| 48 |
|
| 49 |
if res and res.get("value") == "file":
|
| 50 |
files = None
|
| 51 |
files = await cl.AskFileMessage(
|
| 52 |
+
content="Please upload a URL, Text, PDF file to begin!",
|
| 53 |
accept=["text/plain", "application/pdf"],
|
| 54 |
max_size_mb=12,
|
| 55 |
).send()
|