Nammalvar commited on
Commit
3caa5e5
·
verified ·
1 Parent(s): de0e829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 engravings 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,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 engravings"
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