vechism commited on
Commit
f399991
·
verified ·
1 Parent(s): ee56da3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -25,8 +25,12 @@ def mutante_unicorn(theme:str) -> str: #it's import to specify the return type
25
  description="Generate image from prompt"
26
  )
27
  '''
 
 
 
 
28
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
29
- image = image_generation_tool(theme)
30
  return final_answer(image)
31
  except Exception as e:
32
  return f"Error creating card for theme '{theme}': {str(e)}"
 
25
  description="Generate image from prompt"
26
  )
27
  '''
28
+ description = f'''
29
+ aa close-up photograph of a {theme} unicorn with butterfly wings holding a small brightfull orb with its tiny paws,
30
+ looking at the center of the orb with a concentrated gaze. The unicorn is in
31
+ a clearing in the forest on a moonlit night'''
32
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
33
+ image = image_generation_tool(description)
34
  return final_answer(image)
35
  except Exception as e:
36
  return f"Error creating card for theme '{theme}': {str(e)}"