Spaces:
Sleeping
Sleeping
harisyammnv
commited on
Commit
·
1156d26
1
Parent(s):
40a1af9
feat: added new files
Browse files- .gitignore +2 -1
- app.py +9 -0
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
__pycache__
|
|
|
|
1 |
+
__pycache__
|
2 |
+
.env
|
app.py
CHANGED
@@ -36,6 +36,15 @@ def setup_runnable():
|
|
36 |
|
37 |
@cl.on_chat_start
|
38 |
async def on_chat_start():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
40 |
setup_runnable()
|
41 |
|
|
|
36 |
|
37 |
@cl.on_chat_start
|
38 |
async def on_chat_start():
|
39 |
+
await cl.Avatar(
|
40 |
+
name="Chatbot",
|
41 |
+
path="icon/chainlit.png"
|
42 |
+
).send()
|
43 |
+
|
44 |
+
await cl.Avatar(
|
45 |
+
name="User",
|
46 |
+
path="icon/avatar.png",
|
47 |
+
).send()
|
48 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
49 |
setup_runnable()
|
50 |
|