Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
checks
Browse files
app.py
CHANGED
@@ -740,13 +740,13 @@ def get_answer():
|
|
740 |
response = json_answer_generator(message, data)
|
741 |
except Exception as e:
|
742 |
print(e)
|
743 |
-
response = {'content':"An error occurred while processing your request."}
|
744 |
elif (image is None) and (message is not None):
|
745 |
task = router_node(message)
|
746 |
if task == 'recommendation':
|
747 |
recipes = recommendation_node(message)
|
748 |
if not recipes:
|
749 |
-
response = {'content': "An error occurred while processing your request."}
|
750 |
else:
|
751 |
# response = answer_formatter_node(message, recipes)
|
752 |
response = recipes
|
|
|
740 |
response = json_answer_generator(message, data)
|
741 |
except Exception as e:
|
742 |
print(e)
|
743 |
+
response = {'content':"An error occurred while processing your request." + str(e)}
|
744 |
elif (image is None) and (message is not None):
|
745 |
task = router_node(message)
|
746 |
if task == 'recommendation':
|
747 |
recipes = recommendation_node(message)
|
748 |
if not recipes:
|
749 |
+
response = {'content': "An error occurred while processing your request." + str(e)}
|
750 |
else:
|
751 |
# response = answer_formatter_node(message, recipes)
|
752 |
response = recipes
|