Spaces:
Runtime error
Runtime error
André Oriani commited on
Commit ·
af6d74d
1
Parent(s): df05ac1
update requirements.txt
Browse files- Dockerfile +1 -1
- README.md +1 -0
- app.py +3 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.9
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
USER user
|
| 4 |
ENV HOME=/home/user \
|
|
|
|
| 1 |
+
FROM python:3.9.6
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
USER user
|
| 4 |
ENV HOME=/home/user \
|
README.md
CHANGED
|
@@ -4,6 +4,7 @@ emoji: 👀
|
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: gray
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
| 8 |
license: apache-2.0
|
| 9 |
---
|
|
|
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
+
python_version: 3.9.6
|
| 8 |
pinned: false
|
| 9 |
license: apache-2.0
|
| 10 |
---
|
app.py
CHANGED
|
@@ -67,9 +67,9 @@ async def on_chat_start():
|
|
| 67 |
|
| 68 |
@cl.on_message
|
| 69 |
async def on_message(message: cl.Message):
|
| 70 |
-
print("""
|
| 71 |
=================================================================================
|
| 72 |
-
ON MESSAGE
|
| 73 |
=================================================================================
|
| 74 |
""")
|
| 75 |
runnable = cl.user_session.get("runnable")
|
|
@@ -83,3 +83,4 @@ async def on_message(message: cl.Message):
|
|
| 83 |
await msg.stream_token(chunk)
|
| 84 |
|
| 85 |
await msg.send()
|
|
|
|
|
|
| 67 |
|
| 68 |
@cl.on_message
|
| 69 |
async def on_message(message: cl.Message):
|
| 70 |
+
print(f"""
|
| 71 |
=================================================================================
|
| 72 |
+
ON MESSAGE: {message.content}
|
| 73 |
=================================================================================
|
| 74 |
""")
|
| 75 |
runnable = cl.user_session.get("runnable")
|
|
|
|
| 83 |
await msg.stream_token(chunk)
|
| 84 |
|
| 85 |
await msg.send()
|
| 86 |
+
print(f"Done with <{message.content}>")
|