helgn commited on
Commit
74f4af3
·
verified ·
1 Parent(s): 334c232

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
20
  return "What magic will you build ?"
21
 
22
  @tool
23
- def get_calories(meal:str) -> str:
24
  search_url = f"https://world.openfoodfacts.org/cgi/search.pl"
25
  params = {
26
  'search_terms': meal,
 
20
  return "What magic will you build ?"
21
 
22
  @tool
23
+ def get_calories(meal:str) -> Union[str, None]:
24
  search_url = f"https://world.openfoodfacts.org/cgi/search.pl"
25
  params = {
26
  'search_terms': meal,