Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ def historical_event_tool(date: str) -> str:
|
|
| 67 |
|
| 68 |
@tool
|
| 69 |
def generate_historical_image(event: str) -> str:
|
| 70 |
-
"""A tool that generates an image in the style of 19th century
|
| 71 |
|
| 72 |
Args:
|
| 73 |
event: A string representing the historical event (e.g., 'Independence Day in the United States')
|
|
@@ -75,7 +75,7 @@ def generate_historical_image(event: str) -> str:
|
|
| 75 |
Returns:
|
| 76 |
A string representing the generated image (e.g., a URL or image data), or an error message.
|
| 77 |
"""
|
| 78 |
-
prompt = f"{event} in the style of 19th century
|
| 79 |
try:
|
| 80 |
image_result = image_generation_tool(prompt)
|
| 81 |
return image_result
|
|
|
|
| 67 |
|
| 68 |
@tool
|
| 69 |
def generate_historical_image(event: str) -> str:
|
| 70 |
+
"""A tool that generates an image in the style of 19th century cartoons based on a historical event.
|
| 71 |
|
| 72 |
Args:
|
| 73 |
event: A string representing the historical event (e.g., 'Independence Day in the United States')
|
|
|
|
| 75 |
Returns:
|
| 76 |
A string representing the generated image (e.g., a URL or image data), or an error message.
|
| 77 |
"""
|
| 78 |
+
prompt = f"{event} in the style of 19th century cartoons"
|
| 79 |
try:
|
| 80 |
image_result = image_generation_tool(prompt)
|
| 81 |
return image_result
|