Spaces:
Sleeping
Sleeping
debugging respond function
Browse files
app.py
CHANGED
|
@@ -67,9 +67,8 @@ def respond(message, history):
|
|
| 67 |
|
| 68 |
messages = [{"role": "system", "content": system_prompt}]
|
| 69 |
|
| 70 |
-
for
|
| 71 |
-
|
| 72 |
-
if assistant_msg: messages.append({"role": "assistant", "content": assistant_msg})
|
| 73 |
|
| 74 |
messages.append({"role": "user", "content": message})
|
| 75 |
|
|
@@ -89,7 +88,7 @@ def respond(message, history):
|
|
| 89 |
chatbot = gr.ChatInterface(
|
| 90 |
respond,
|
| 91 |
title="CityScout: Unique Spot Finder",
|
| 92 |
-
description="Tell me your city or interests
|
| 93 |
)
|
| 94 |
|
| 95 |
if __name__ == "__main__":
|
|
|
|
| 67 |
|
| 68 |
messages = [{"role": "system", "content": system_prompt}]
|
| 69 |
|
| 70 |
+
for msg in history:
|
| 71 |
+
messages.append(msg)
|
|
|
|
| 72 |
|
| 73 |
messages.append({"role": "user", "content": message})
|
| 74 |
|
|
|
|
| 88 |
chatbot = gr.ChatInterface(
|
| 89 |
respond,
|
| 90 |
title="CityScout: Unique Spot Finder",
|
| 91 |
+
description="Tell me your city or interests and I'll help you find cool places nearby!"
|
| 92 |
)
|
| 93 |
|
| 94 |
if __name__ == "__main__":
|