Spaces:
Running
Running
removed comments
Browse files
app.py
CHANGED
@@ -138,11 +138,9 @@ async def handle_message(message: cl.Message):
|
|
138 |
|
139 |
@cl.on_chat_start
|
140 |
async def handle_chat_start():
|
141 |
-
# Check if "message_history" is None
|
142 |
if cl.user_session.get("message_history") is None:
|
143 |
cl.user_session.set("message_history", [])
|
144 |
|
145 |
-
# Check if "food_data" is None
|
146 |
if cl.user_session.get("food_data") is None:
|
147 |
cl.user_session.set("food_data", None)
|
148 |
|
@@ -173,4 +171,4 @@ To learn more about how this dataset & the USDA Food Assistant were created, che
|
|
173 |
The full code for the data pipeline and the assistant can be found on GitHub, linked [here](https://github.com/jack-tol/usda-food-data-pipeline).
|
174 |
"""
|
175 |
|
176 |
-
await cl.Message(content=welcome_message).send()
|
|
|
138 |
|
139 |
@cl.on_chat_start
|
140 |
async def handle_chat_start():
|
|
|
141 |
if cl.user_session.get("message_history") is None:
|
142 |
cl.user_session.set("message_history", [])
|
143 |
|
|
|
144 |
if cl.user_session.get("food_data") is None:
|
145 |
cl.user_session.set("food_data", None)
|
146 |
|
|
|
171 |
The full code for the data pipeline and the assistant can be found on GitHub, linked [here](https://github.com/jack-tol/usda-food-data-pipeline).
|
172 |
"""
|
173 |
|
174 |
+
await cl.Message(content=welcome_message).send()
|