Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,10 @@ def mutant_unicorn(animal_name:str) -> str:
|
|
| 24 |
concentrated gaze. The unicorn is in a clearing in the forest on a moonlit night
|
| 25 |
"""
|
| 26 |
try:
|
|
|
|
| 27 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 28 |
image = image_generation_tool(description)
|
|
|
|
| 29 |
return final_answer(image)
|
| 30 |
except Exception as e:
|
| 31 |
return f"Error creating mutant animal '{description}': {str(e)}"
|
|
|
|
| 24 |
concentrated gaze. The unicorn is in a clearing in the forest on a moonlit night
|
| 25 |
"""
|
| 26 |
try:
|
| 27 |
+
# Import tool from Hub
|
| 28 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 29 |
image = image_generation_tool(description)
|
| 30 |
+
print(description)
|
| 31 |
return final_answer(image)
|
| 32 |
except Exception as e:
|
| 33 |
return f"Error creating mutant animal '{description}': {str(e)}"
|