RozzaCreat commited on
Commit
e3c671f
·
verified ·
1 Parent(s): 061b7d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
@@ -12,9 +15,9 @@ from Gradio_UI import GradioUI
12
  @tool
13
  def create_new_vday_card_tool(theme:str) -> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
- """A tool that generates a custom Passover's Day card based on a given theme.
16
  Args:
17
- theme: A string representing the theme for the Passover's Day card.
18
  """
19
  try:
20
  # Import tool from Hub
@@ -61,4 +64,4 @@ agent = CodeAgent(
61
  )
62
 
63
 
64
- GradioUI(agent).launch()
 
1
+
2
+
3
+ from Gradio_UI import GradioUI
4
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
5
  import datetime
6
  import requests
 
15
  @tool
16
  def create_new_vday_card_tool(theme:str) -> str: #it's import to specify the return type
17
  #Keep this format for the description / args / args description but feel free to modify the tool
18
+ """A tool that generates a custom Valentine's Day card based on a given theme.
19
  Args:
20
+ theme: A string representing the theme for the Valentine's Day card.
21
  """
22
  try:
23
  # Import tool from Hub
 
64
  )
65
 
66
 
67
+ GradioUI(agent).launch()