Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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)}"
|