Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fjshfs
Browse files
app.py
CHANGED
@@ -416,6 +416,7 @@ def get_answer(image=[], message='', sessionID='abc123'):
|
|
416 |
task = router_node(message)
|
417 |
if task == 'retrieval':
|
418 |
recipes = recommendation_node(message)
|
|
|
419 |
if not recipes:
|
420 |
response = {'content':"An error occurred while processing your request."}
|
421 |
response = answer_formatter_node(message, recipes)
|
@@ -518,6 +519,7 @@ def handle_message(data):
|
|
518 |
emit('response', response, room=session_id)
|
519 |
else:
|
520 |
response = recommendation_node(message)
|
|
|
521 |
# response = answer_formatter_node(message, recipes)
|
522 |
if response is None:
|
523 |
response = {'content':"An error occurred while processing your request."}
|
|
|
416 |
task = router_node(message)
|
417 |
if task == 'retrieval':
|
418 |
recipes = recommendation_node(message)
|
419 |
+
print(recipes)
|
420 |
if not recipes:
|
421 |
response = {'content':"An error occurred while processing your request."}
|
422 |
response = answer_formatter_node(message, recipes)
|
|
|
519 |
emit('response', response, room=session_id)
|
520 |
else:
|
521 |
response = recommendation_node(message)
|
522 |
+
print(response)
|
523 |
# response = answer_formatter_node(message, recipes)
|
524 |
if response is None:
|
525 |
response = {'content':"An error occurred while processing your request."}
|