Spaces:
Runtime error
Runtime error
André Oriani
commited on
Commit
·
df05ac1
1
Parent(s):
6cd1234
update requirements.txt
Browse files- app.py +10 -0
- requirements.txt +1 -0
app.py
CHANGED
@@ -45,6 +45,11 @@ else:
|
|
45 |
|
46 |
@cl.on_chat_start
|
47 |
async def on_chat_start():
|
|
|
|
|
|
|
|
|
|
|
48 |
prompt_template = ChatPromptTemplate.from_template("""You are an AI agent that suggests movies to people.
|
49 |
Answer the question based on the context below. If the question cannot be answered provide answer with "Sorry, I cannot help you"
|
50 |
|
@@ -62,6 +67,11 @@ async def on_chat_start():
|
|
62 |
|
63 |
@cl.on_message
|
64 |
async def on_message(message: cl.Message):
|
|
|
|
|
|
|
|
|
|
|
65 |
runnable = cl.user_session.get("runnable")
|
66 |
|
67 |
msg = cl.Message(content="")
|
|
|
45 |
|
46 |
@cl.on_chat_start
|
47 |
async def on_chat_start():
|
48 |
+
print("""
|
49 |
+
=================================================================================
|
50 |
+
ON START CHAT
|
51 |
+
=================================================================================
|
52 |
+
""")
|
53 |
prompt_template = ChatPromptTemplate.from_template("""You are an AI agent that suggests movies to people.
|
54 |
Answer the question based on the context below. If the question cannot be answered provide answer with "Sorry, I cannot help you"
|
55 |
|
|
|
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")
|
76 |
|
77 |
msg = cl.Message(content="")
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
chainlit
|
2 |
datasets
|
3 |
langchain
|
|
|
1 |
+
pip == 24.0
|
2 |
chainlit
|
3 |
datasets
|
4 |
langchain
|