Spaces:
Runtime error
Runtime error
Merge remote-tracking branch 'origin/main'
Browse files
app.py
CHANGED
|
@@ -153,15 +153,13 @@ async def on_message(message: str, message_id: str):
|
|
| 153 |
cl.Text(name="Example Dishes:", content=dishes_as_string, display='inline'),
|
| 154 |
cl.Text(name="Category:", content=categories_as_string, display='inline'),
|
| 155 |
cl.Text(name="Estimated Average Price (HKD):", content=restaurant.price, display="inline"),
|
| 156 |
-
# TODO text could also include categories/dishes/rating/price
|
| 157 |
]
|
| 158 |
msg.actions = [
|
| 159 |
cl.Action(name='book', value=id, label='Book', description='Click to book this restaurant'),
|
| 160 |
]
|
| 161 |
await msg.update()
|
| 162 |
|
| 163 |
-
|
| 164 |
-
|
| 165 |
# TODO what should the history include? ids only? or also descriptions?
|
| 166 |
# history.append({"role": "assistant", "content": response.content})
|
| 167 |
# await cl.Text(name="rephrase", content=response_text, displlay="inline").send()
|
|
|
|
| 153 |
cl.Text(name="Example Dishes:", content=dishes_as_string, display='inline'),
|
| 154 |
cl.Text(name="Category:", content=categories_as_string, display='inline'),
|
| 155 |
cl.Text(name="Estimated Average Price (HKD):", content=restaurant.price, display="inline"),
|
| 156 |
+
# TODO text could also include categories/dishes/rating/price/location
|
| 157 |
]
|
| 158 |
msg.actions = [
|
| 159 |
cl.Action(name='book', value=id, label='Book', description='Click to book this restaurant'),
|
| 160 |
]
|
| 161 |
await msg.update()
|
| 162 |
|
|
|
|
|
|
|
| 163 |
# TODO what should the history include? ids only? or also descriptions?
|
| 164 |
# history.append({"role": "assistant", "content": response.content})
|
| 165 |
# await cl.Text(name="rephrase", content=response_text, displlay="inline").send()
|