Update app.py
Browse files
app.py
CHANGED
|
@@ -1219,7 +1219,12 @@ def chat_or_recommend(req: ChatOrRecommendRequest):
|
|
| 1219 |
f" - {item['desc']}\n"
|
| 1220 |
)
|
| 1221 |
response_text += "\nμ΄ μ€μμ μ΄λ€ νλμ΄ κ°μ₯ λ리μλμ? π"
|
| 1222 |
-
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1223 |
|
| 1224 |
else:
|
| 1225 |
# βΆ 2) μ±λ΄ λ‘μ§
|
|
|
|
| 1219 |
f" - {item['desc']}\n"
|
| 1220 |
)
|
| 1221 |
response_text += "\nμ΄ μ€μμ μ΄λ€ νλμ΄ κ°μ₯ λ리μλμ? π"
|
| 1222 |
+
return {
|
| 1223 |
+
"mode": "recommend",
|
| 1224 |
+
"recommendations": results,
|
| 1225 |
+
"response": response_text # πΉ μ¬κΈ°μ ν€λ₯Ό μΆκ°
|
| 1226 |
+
}
|
| 1227 |
+
|
| 1228 |
|
| 1229 |
else:
|
| 1230 |
# βΆ 2) μ±λ΄ λ‘μ§
|