Evan Lesmez commited on
Commit
4032874
1 Parent(s): 81384ea

Remove accidental fastcore import

Browse files
_proc/01_app.ipynb CHANGED
@@ -550,7 +550,7 @@
550
  "text/markdown": [
551
  "---\n",
552
  "\n",
553
- "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L42){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
554
  "\n",
555
  "### ConversationBot\n",
556
  "\n",
@@ -563,7 +563,7 @@
563
  "text/plain": [
564
  "---\n",
565
  "\n",
566
- "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L42){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
567
  "\n",
568
  "### ConversationBot\n",
569
  "\n",
@@ -667,7 +667,7 @@
667
  "text/markdown": [
668
  "---\n",
669
  "\n",
670
- "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L136){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
671
  "\n",
672
  "### create_demo\n",
673
  "\n",
@@ -676,7 +676,7 @@
676
  "text/plain": [
677
  "---\n",
678
  "\n",
679
- "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L136){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
680
  "\n",
681
  "### create_demo\n",
682
  "\n",
 
550
  "text/markdown": [
551
  "---\n",
552
  "\n",
553
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L41){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
554
  "\n",
555
  "### ConversationBot\n",
556
  "\n",
 
563
  "text/plain": [
564
  "---\n",
565
  "\n",
566
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L41){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
567
  "\n",
568
  "### ConversationBot\n",
569
  "\n",
 
667
  "text/markdown": [
668
  "---\n",
669
  "\n",
670
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L131){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
671
  "\n",
672
  "### create_demo\n",
673
  "\n",
 
676
  "text/plain": [
677
  "---\n",
678
  "\n",
679
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L131){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
680
  "\n",
681
  "### create_demo\n",
682
  "\n",
lv_recipe_chatbot/_modidx.py CHANGED
@@ -6,8 +6,6 @@ d = { 'settings': { 'branch': 'main',
6
  'git_url': 'https://gitlab.com/animalequality/lv-recipe-chatbot',
7
  'lib_path': 'lv_recipe_chatbot'},
8
  'syms': { 'lv_recipe_chatbot.app': { 'lv_recipe_chatbot.app.ConversationBot': ('app.html#conversationbot', 'lv_recipe_chatbot/app.py'),
9
- 'lv_recipe_chatbot.app.ConversationBot.__del__': ( 'app.html#conversationbot.__del__',
10
- 'lv_recipe_chatbot/app.py'),
11
  'lv_recipe_chatbot.app.ConversationBot.__init__': ( 'app.html#conversationbot.__init__',
12
  'lv_recipe_chatbot/app.py'),
13
  'lv_recipe_chatbot.app.ConversationBot._get_bot_response': ( 'app.html#conversationbot._get_bot_response',
@@ -44,14 +42,6 @@ d = { 'settings': { 'branch': 'main',
44
  'lv_recipe_chatbot/ingredient_vision.py'),
45
  'lv_recipe_chatbot.ingredient_vision.format_image': ( 'ingredient_vision.html#format_image',
46
  'lv_recipe_chatbot/ingredient_vision.py')},
47
- 'lv_recipe_chatbot.lchain_tool': { 'lv_recipe_chatbot.lchain_tool.RecipeSerpAPIWrapper': ( 'vegan_recipe_tools.html#recipeserpapiwrapper',
48
- 'lv_recipe_chatbot/lchain_tool.py'),
49
- 'lv_recipe_chatbot.lchain_tool.RecipeSerpAPIWrapper._process_response': ( 'vegan_recipe_tools.html#recipeserpapiwrapper._process_response',
50
- 'lv_recipe_chatbot/lchain_tool.py'),
51
- 'lv_recipe_chatbot.lchain_tool.get_vegan_recipes_edamam_api': ( 'vegan_recipe_tools.html#get_vegan_recipes_edamam_api',
52
- 'lv_recipe_chatbot/lchain_tool.py'),
53
- 'lv_recipe_chatbot.lchain_tool.vegan_recipe_edamam_search': ( 'vegan_recipe_tools.html#vegan_recipe_edamam_search',
54
- 'lv_recipe_chatbot/lchain_tool.py')},
55
  'lv_recipe_chatbot.vegan_recipe_tools': { 'lv_recipe_chatbot.vegan_recipe_tools.RecipeSerpAPIWrapper': ( 'vegan_recipe_tools.html#recipeserpapiwrapper',
56
  'lv_recipe_chatbot/vegan_recipe_tools.py'),
57
  'lv_recipe_chatbot.vegan_recipe_tools.RecipeSerpAPIWrapper._process_response': ( 'vegan_recipe_tools.html#recipeserpapiwrapper._process_response',
 
6
  'git_url': 'https://gitlab.com/animalequality/lv-recipe-chatbot',
7
  'lib_path': 'lv_recipe_chatbot'},
8
  'syms': { 'lv_recipe_chatbot.app': { 'lv_recipe_chatbot.app.ConversationBot': ('app.html#conversationbot', 'lv_recipe_chatbot/app.py'),
 
 
9
  'lv_recipe_chatbot.app.ConversationBot.__init__': ( 'app.html#conversationbot.__init__',
10
  'lv_recipe_chatbot/app.py'),
11
  'lv_recipe_chatbot.app.ConversationBot._get_bot_response': ( 'app.html#conversationbot._get_bot_response',
 
42
  'lv_recipe_chatbot/ingredient_vision.py'),
43
  'lv_recipe_chatbot.ingredient_vision.format_image': ( 'ingredient_vision.html#format_image',
44
  'lv_recipe_chatbot/ingredient_vision.py')},
 
 
 
 
 
 
 
 
45
  'lv_recipe_chatbot.vegan_recipe_tools': { 'lv_recipe_chatbot.vegan_recipe_tools.RecipeSerpAPIWrapper': ( 'vegan_recipe_tools.html#recipeserpapiwrapper',
46
  'lv_recipe_chatbot/vegan_recipe_tools.py'),
47
  'lv_recipe_chatbot.vegan_recipe_tools.RecipeSerpAPIWrapper._process_response': ( 'vegan_recipe_tools.html#recipeserpapiwrapper._process_response',
lv_recipe_chatbot/app.py CHANGED
@@ -8,7 +8,6 @@ import copy
8
  import os
9
 
10
  import gradio as gr
11
- from fastcore.utils import in_jupyter
12
  from langchain import LLMChain, OpenAI, PromptTemplate
13
  from langchain.agents import (
14
  AgentExecutor,
@@ -128,10 +127,6 @@ The extracted ingredients are:
128
  response = self.agent_executer.run(input=user_msg)
129
  return response
130
 
131
- def __del__(self):
132
- del self.vegan_ingred_finder
133
- del self.img_cap
134
-
135
  # %% ../nbs/01_app.ipynb 20
136
  def create_demo(bot: ConversationBot):
137
  sample_images = []
 
8
  import os
9
 
10
  import gradio as gr
 
11
  from langchain import LLMChain, OpenAI, PromptTemplate
12
  from langchain.agents import (
13
  AgentExecutor,
 
127
  response = self.agent_executer.run(input=user_msg)
128
  return response
129
 
 
 
 
 
130
  # %% ../nbs/01_app.ipynb 20
131
  def create_demo(bot: ConversationBot):
132
  sample_images = []
nbs/.last_checked ADDED
File without changes
nbs/01_app.ipynb CHANGED
@@ -39,7 +39,6 @@
39
  "import os\n",
40
  "\n",
41
  "import gradio as gr\n",
42
- "from fastcore.utils import in_jupyter\n",
43
  "from langchain import LLMChain, OpenAI, PromptTemplate\n",
44
  "from langchain.agents import (\n",
45
  " AgentExecutor,\n",
 
39
  "import os\n",
40
  "\n",
41
  "import gradio as gr\n",
 
42
  "from langchain import LLMChain, OpenAI, PromptTemplate\n",
43
  "from langchain.agents import (\n",
44
  " AgentExecutor,\n",