Risalat commited on
Commit
8889f9a
·
verified ·
1 Parent(s): 14201e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,8 @@ from smolagents import tool
33
 
34
  # Assuming this is already loaded earlier
35
  # image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
36
-
 
37
  @tool
38
  def image_generator(arg1: str) -> str:
39
  """
@@ -88,8 +89,7 @@ custom_role_conversions=None,
88
  )
89
 
90
 
91
- # Import tool from Hub
92
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
93
 
94
  with open("prompts.yaml", 'r') as stream:
95
  prompt_templates = yaml.safe_load(stream)
 
33
 
34
  # Assuming this is already loaded earlier
35
  # image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
36
+ # Import tool from Hub
37
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
38
  @tool
39
  def image_generator(arg1: str) -> str:
40
  """
 
89
  )
90
 
91
 
92
+
 
93
 
94
  with open("prompts.yaml", 'r') as stream:
95
  prompt_templates = yaml.safe_load(stream)