Spaces:
Build error
Build error
Evan Lesmez
commited on
Commit
·
6b5c559
1
Parent(s):
4032874
Fix errored imports
Browse files
_proc/02_vegan_recipe_tools.ipynb
CHANGED
|
@@ -28,7 +28,8 @@
|
|
| 28 |
},
|
| 29 |
"outputs": [],
|
| 30 |
"source": [
|
| 31 |
-
"from dotenv import load_dotenv"
|
|
|
|
| 32 |
]
|
| 33 |
},
|
| 34 |
{
|
|
@@ -502,7 +503,7 @@
|
|
| 502 |
"text/markdown": [
|
| 503 |
"---\n",
|
| 504 |
"\n",
|
| 505 |
-
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#
|
| 506 |
"\n",
|
| 507 |
"### RecipeSerpAPIWrapper\n",
|
| 508 |
"\n",
|
|
@@ -527,7 +528,7 @@
|
|
| 527 |
"text/plain": [
|
| 528 |
"---\n",
|
| 529 |
"\n",
|
| 530 |
-
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#
|
| 531 |
"\n",
|
| 532 |
"### RecipeSerpAPIWrapper\n",
|
| 533 |
"\n",
|
|
@@ -1371,7 +1372,7 @@
|
|
| 1371 |
"text/markdown": [
|
| 1372 |
"---\n",
|
| 1373 |
"\n",
|
| 1374 |
-
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#
|
| 1375 |
"\n",
|
| 1376 |
"### get_vegan_recipes_edamam_api\n",
|
| 1377 |
"\n",
|
|
@@ -1382,7 +1383,7 @@
|
|
| 1382 |
"text/plain": [
|
| 1383 |
"---\n",
|
| 1384 |
"\n",
|
| 1385 |
-
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#
|
| 1386 |
"\n",
|
| 1387 |
"### get_vegan_recipes_edamam_api\n",
|
| 1388 |
"\n",
|
|
@@ -2360,7 +2361,7 @@
|
|
| 2360 |
"text/markdown": [
|
| 2361 |
"---\n",
|
| 2362 |
"\n",
|
| 2363 |
-
"### 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
|
| 2364 |
"\n",
|
| 2365 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
| 2366 |
"> v\n",
|
|
@@ -2502,15 +2503,15 @@
|
|
| 2502 |
"> x\n",
|
| 2503 |
"> 7\n",
|
| 2504 |
"> f\n",
|
| 2505 |
-
"> 0\n",
|
| 2506 |
-
"> 2\n",
|
| 2507 |
-
"> 1\n",
|
| 2508 |
-
"> f\n",
|
| 2509 |
"> 6\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2510 |
"> 6\n",
|
| 2511 |
"> 0\n",
|
| 2512 |
-
">
|
| 2513 |
-
">
|
| 2514 |
"> 0\n",
|
| 2515 |
"> >\n",
|
| 2516 |
"> c\n",
|
|
@@ -2676,7 +2677,7 @@
|
|
| 2676 |
"text/plain": [
|
| 2677 |
"---\n",
|
| 2678 |
"\n",
|
| 2679 |
-
"### 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
|
| 2680 |
"\n",
|
| 2681 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
| 2682 |
"> v\n",
|
|
@@ -2818,15 +2819,15 @@
|
|
| 2818 |
"> x\n",
|
| 2819 |
"> 7\n",
|
| 2820 |
"> f\n",
|
| 2821 |
-
"> 0\n",
|
| 2822 |
-
"> 2\n",
|
| 2823 |
-
"> 1\n",
|
| 2824 |
-
"> f\n",
|
| 2825 |
"> 6\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2826 |
"> 6\n",
|
| 2827 |
"> 0\n",
|
| 2828 |
-
">
|
| 2829 |
-
">
|
| 2830 |
"> 0\n",
|
| 2831 |
"> >\n",
|
| 2832 |
"> c\n",
|
|
|
|
| 28 |
},
|
| 29 |
"outputs": [],
|
| 30 |
"source": [
|
| 31 |
+
"from dotenv import load_dotenv\n",
|
| 32 |
+
"from IPython.display import Image, Markdown, display"
|
| 33 |
]
|
| 34 |
},
|
| 35 |
{
|
|
|
|
| 503 |
"text/markdown": [
|
| 504 |
"---\n",
|
| 505 |
"\n",
|
| 506 |
+
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#L30){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
|
| 507 |
"\n",
|
| 508 |
"### RecipeSerpAPIWrapper\n",
|
| 509 |
"\n",
|
|
|
|
| 528 |
"text/plain": [
|
| 529 |
"---\n",
|
| 530 |
"\n",
|
| 531 |
+
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#L30){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
|
| 532 |
"\n",
|
| 533 |
"### RecipeSerpAPIWrapper\n",
|
| 534 |
"\n",
|
|
|
|
| 1372 |
"text/markdown": [
|
| 1373 |
"---\n",
|
| 1374 |
"\n",
|
| 1375 |
+
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#L40){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
|
| 1376 |
"\n",
|
| 1377 |
"### get_vegan_recipes_edamam_api\n",
|
| 1378 |
"\n",
|
|
|
|
| 1383 |
"text/plain": [
|
| 1384 |
"---\n",
|
| 1385 |
"\n",
|
| 1386 |
+
"[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/vegan_recipe_tools.py#L40){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
|
| 1387 |
"\n",
|
| 1388 |
"### get_vegan_recipes_edamam_api\n",
|
| 1389 |
"\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 0x7f6f0d860f70> coroutine=None\n",
|
| 2365 |
"\n",
|
| 2366 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
| 2367 |
"> v\n",
|
|
|
|
| 2503 |
"> x\n",
|
| 2504 |
"> 7\n",
|
| 2505 |
"> f\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2506 |
"> 6\n",
|
| 2507 |
+
"> f\n",
|
| 2508 |
+
"> 0\n",
|
| 2509 |
+
"> d\n",
|
| 2510 |
+
"> 8\n",
|
| 2511 |
"> 6\n",
|
| 2512 |
"> 0\n",
|
| 2513 |
+
"> f\n",
|
| 2514 |
+
"> 7\n",
|
| 2515 |
"> 0\n",
|
| 2516 |
"> >\n",
|
| 2517 |
"> c\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 0x7f6f0d860f70> coroutine=None\n",
|
| 2681 |
"\n",
|
| 2682 |
"> vegan_recipe_edamam_searchSchemaSchema'> return_direct=False\n",
|
| 2683 |
"> v\n",
|
|
|
|
| 2819 |
"> x\n",
|
| 2820 |
"> 7\n",
|
| 2821 |
"> f\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2822 |
"> 6\n",
|
| 2823 |
+
"> f\n",
|
| 2824 |
+
"> 0\n",
|
| 2825 |
+
"> d\n",
|
| 2826 |
+
"> 8\n",
|
| 2827 |
"> 6\n",
|
| 2828 |
"> 0\n",
|
| 2829 |
+
"> f\n",
|
| 2830 |
+
"> 7\n",
|
| 2831 |
"> 0\n",
|
| 2832 |
"> >\n",
|
| 2833 |
"> c\n",
|
lv_recipe_chatbot/vegan_recipe_tools.py
CHANGED
|
@@ -6,9 +6,7 @@ __all__ = ['RecipeSerpAPIWrapper', 'get_vegan_recipes_edamam_api', 'vegan_recipe
|
|
| 6 |
# %% ../nbs/02_vegan_recipe_tools.ipynb 3
|
| 7 |
import os
|
| 8 |
from typing import Dict
|
| 9 |
-
|
| 10 |
import requests
|
| 11 |
-
from IPython.display import Image, Markdown, display
|
| 12 |
from langchain.agents import (
|
| 13 |
AgentExecutor,
|
| 14 |
AgentType,
|
|
|
|
| 6 |
# %% ../nbs/02_vegan_recipe_tools.ipynb 3
|
| 7 |
import os
|
| 8 |
from typing import Dict
|
|
|
|
| 9 |
import requests
|
|
|
|
| 10 |
from langchain.agents import (
|
| 11 |
AgentExecutor,
|
| 12 |
AgentType,
|
nbs/01_app.ipynb
CHANGED
|
@@ -34,7 +34,7 @@
|
|
| 34 |
"metadata": {},
|
| 35 |
"outputs": [],
|
| 36 |
"source": [
|
| 37 |
-
"
|
| 38 |
"import copy\n",
|
| 39 |
"import os\n",
|
| 40 |
"\n",
|
|
|
|
| 34 |
"metadata": {},
|
| 35 |
"outputs": [],
|
| 36 |
"source": [
|
| 37 |
+
"# | export\n",
|
| 38 |
"import copy\n",
|
| 39 |
"import os\n",
|
| 40 |
"\n",
|
nbs/02_vegan_recipe_tools.ipynb
CHANGED
|
@@ -37,9 +37,7 @@
|
|
| 37 |
"#| export\n",
|
| 38 |
"import os\n",
|
| 39 |
"from typing import Dict\n",
|
| 40 |
-
"\n",
|
| 41 |
"import requests\n",
|
| 42 |
-
"from IPython.display import Image, Markdown, display\n",
|
| 43 |
"from langchain.agents import (\n",
|
| 44 |
" AgentExecutor,\n",
|
| 45 |
" AgentType,\n",
|
|
@@ -66,7 +64,8 @@
|
|
| 66 |
"metadata": {},
|
| 67 |
"outputs": [],
|
| 68 |
"source": [
|
| 69 |
-
"from dotenv import load_dotenv"
|
|
|
|
| 70 |
]
|
| 71 |
},
|
| 72 |
{
|
|
|
|
| 37 |
"#| export\n",
|
| 38 |
"import os\n",
|
| 39 |
"from typing import Dict\n",
|
|
|
|
| 40 |
"import requests\n",
|
|
|
|
| 41 |
"from langchain.agents import (\n",
|
| 42 |
" AgentExecutor,\n",
|
| 43 |
" AgentType,\n",
|
|
|
|
| 64 |
"metadata": {},
|
| 65 |
"outputs": [],
|
| 66 |
"source": [
|
| 67 |
+
"from dotenv import load_dotenv\n",
|
| 68 |
+
"from IPython.display import Image, Markdown, display"
|
| 69 |
]
|
| 70 |
},
|
| 71 |
{
|