Spaces:
Running
Running
Evan Lesmez
commited on
Commit
•
8f49005
1
Parent(s):
849f145
Fix typo on agent_executor in ConversationBot
Browse files- _proc/02_vegan_recipe_tools.ipynb +14 -14
- lv_recipe_chatbot/app.py +1 -1
- nbs/01_app.ipynb +1 -1
_proc/02_vegan_recipe_tools.ipynb
CHANGED
@@ -2361,7 +2361,7 @@
|
|
2361 |
"text/markdown": [
|
2362 |
"---\n",
|
2363 |
"\n",
|
2364 |
-
"### vegan_recipe_edamam_searchSchemaSchema'> return_direct=False verbose=False callbacks=None callback_manager=None tags=None metadata=None handle_tool_error=False func=<function vegan_recipe_edamam_search at
|
2365 |
"\n",
|
2366 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
2367 |
"> v\n",
|
@@ -2502,14 +2502,14 @@
|
|
2502 |
"> 0\n",
|
2503 |
"> x\n",
|
2504 |
"> 7\n",
|
|
|
2505 |
"> f\n",
|
2506 |
-
"> 6\n",
|
2507 |
-
"> f\n",
|
2508 |
-
"> 0\n",
|
2509 |
"> d\n",
|
2510 |
-
">
|
2511 |
-
">
|
2512 |
-
">
|
|
|
|
|
2513 |
"> f\n",
|
2514 |
"> 7\n",
|
2515 |
"> 0\n",
|
@@ -2677,7 +2677,7 @@
|
|
2677 |
"text/plain": [
|
2678 |
"---\n",
|
2679 |
"\n",
|
2680 |
-
"### vegan_recipe_edamam_searchSchemaSchema'> return_direct=False verbose=False callbacks=None callback_manager=None tags=None metadata=None handle_tool_error=False func=<function vegan_recipe_edamam_search at
|
2681 |
"\n",
|
2682 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
2683 |
"> v\n",
|
@@ -2818,14 +2818,14 @@
|
|
2818 |
"> 0\n",
|
2819 |
"> x\n",
|
2820 |
"> 7\n",
|
|
|
2821 |
"> f\n",
|
2822 |
-
"> 6\n",
|
2823 |
-
"> f\n",
|
2824 |
-
"> 0\n",
|
2825 |
"> d\n",
|
2826 |
-
">
|
2827 |
-
">
|
2828 |
-
">
|
|
|
|
|
2829 |
"> f\n",
|
2830 |
"> 7\n",
|
2831 |
"> 0\n",
|
|
|
2361 |
"text/markdown": [
|
2362 |
"---\n",
|
2363 |
"\n",
|
2364 |
+
"### vegan_recipe_edamam_searchSchemaSchema'> return_direct=False verbose=False callbacks=None callback_manager=None tags=None metadata=None handle_tool_error=False func=<function vegan_recipe_edamam_search at 0x7efd72abcf70> coroutine=None\n",
|
2365 |
"\n",
|
2366 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
2367 |
"> v\n",
|
|
|
2502 |
"> 0\n",
|
2503 |
"> x\n",
|
2504 |
"> 7\n",
|
2505 |
+
"> e\n",
|
2506 |
"> f\n",
|
|
|
|
|
|
|
2507 |
"> d\n",
|
2508 |
+
"> 7\n",
|
2509 |
+
"> 2\n",
|
2510 |
+
"> a\n",
|
2511 |
+
"> b\n",
|
2512 |
+
"> c\n",
|
2513 |
"> f\n",
|
2514 |
"> 7\n",
|
2515 |
"> 0\n",
|
|
|
2677 |
"text/plain": [
|
2678 |
"---\n",
|
2679 |
"\n",
|
2680 |
+
"### vegan_recipe_edamam_searchSchemaSchema'> return_direct=False verbose=False callbacks=None callback_manager=None tags=None metadata=None handle_tool_error=False func=<function vegan_recipe_edamam_search at 0x7efd72abcf70> coroutine=None\n",
|
2681 |
"\n",
|
2682 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
2683 |
"> v\n",
|
|
|
2818 |
"> 0\n",
|
2819 |
"> x\n",
|
2820 |
"> 7\n",
|
2821 |
+
"> e\n",
|
2822 |
"> f\n",
|
|
|
|
|
|
|
2823 |
"> d\n",
|
2824 |
+
"> 7\n",
|
2825 |
+
"> 2\n",
|
2826 |
+
"> a\n",
|
2827 |
+
"> b\n",
|
2828 |
+
"> c\n",
|
2829 |
"> f\n",
|
2830 |
"> 7\n",
|
2831 |
"> 0\n",
|
lv_recipe_chatbot/app.py
CHANGED
@@ -124,7 +124,7 @@ The extracted ingredients are:
|
|
124 |
self.init_agent_executor(chat_msgs)
|
125 |
return self.agent_executor.run("Search for a vegan recipe with that query")
|
126 |
|
127 |
-
response = self.
|
128 |
return response
|
129 |
|
130 |
# %% ../nbs/01_app.ipynb 20
|
|
|
124 |
self.init_agent_executor(chat_msgs)
|
125 |
return self.agent_executor.run("Search for a vegan recipe with that query")
|
126 |
|
127 |
+
response = self.agent_executor.run(input=user_msg)
|
128 |
return response
|
129 |
|
130 |
# %% ../nbs/01_app.ipynb 20
|
nbs/01_app.ipynb
CHANGED
@@ -656,7 +656,7 @@
|
|
656 |
" self.init_agent_executor(chat_msgs)\n",
|
657 |
" return self.agent_executor.run(\"Search for a vegan recipe with that query\")\n",
|
658 |
"\n",
|
659 |
-
" response = self.
|
660 |
" return response"
|
661 |
]
|
662 |
},
|
|
|
656 |
" self.init_agent_executor(chat_msgs)\n",
|
657 |
" return self.agent_executor.run(\"Search for a vegan recipe with that query\")\n",
|
658 |
"\n",
|
659 |
+
" response = self.agent_executor.run(input=user_msg)\n",
|
660 |
" return response"
|
661 |
]
|
662 |
},
|