Abdenbi11 commited on
Commit
5fdf40d
·
verified ·
1 Parent(s): 55494d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -18,7 +18,16 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
18
  """
19
  return "What magic will you build ?"
20
 
 
 
 
 
 
 
 
 
21
 
 
22
  @tool
23
  def Searchtool(question: str) -> str:
24
  """Un outil qui utilise DuckDuckGoSearchTool pour chercher des informations sur le web.
@@ -29,14 +38,7 @@ def Searchtool(question: str) -> str:
29
  response = search_tool(question)
30
  return response
31
 
32
- @tool
33
- def generate_image(prompt : str) -> str :
34
- """ genere une image a partir d'une description textuelle .
35
- Args :
36
- prompt : une description de l'image a générer
37
- returns : URL ou chemin de l'image générer """
38
 
39
- return image_generation_tool(prompt)
40
 
41
 
42
  @tool
 
18
  """
19
  return "What magic will you build ?"
20
 
21
+ @tool
22
+ def generate_image(prompt : str) -> str :
23
+ """ genere une image a partir d'une description textuelle .
24
+ Args :
25
+ prompt : une description de l'image a générer
26
+ returns : URL ou chemin de l'image générer """
27
+
28
+ return image_generation_tool(prompt)
29
 
30
+
31
  @tool
32
  def Searchtool(question: str) -> str:
33
  """Un outil qui utilise DuckDuckGoSearchTool pour chercher des informations sur le web.
 
38
  response = search_tool(question)
39
  return response
40
 
 
 
 
 
 
 
41
 
 
42
 
43
 
44
  @tool