csiadat commited on
Commit
66a793c
·
verified ·
1 Parent(s): f3dddfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -25,8 +25,7 @@ def create_new_vday_card_tool(theme:str) -> str: #it's import to specify the ret
25
  )
26
  '''
27
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
28
- prompt = "Generate a high-resolution image of a valentine's day card themed around " + theme
29
- image = image_generation_tool(prompt)
30
  return final_answer(image)
31
  except Exception as e:
32
  return f"Error creating image for theme '{theme}': {str(e)}"
 
25
  )
26
  '''
27
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
28
+ image = image_generation_tool(theme)
 
29
  return final_answer(image)
30
  except Exception as e:
31
  return f"Error creating image for theme '{theme}': {str(e)}"