Lu032145 commited on
Commit
d3484a0
·
verified ·
1 Parent(s): c7d0f7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -7,6 +7,26 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
 
12
  @tool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
10
+ def generate_prompts(description: str, audience: str = "general", style: str = "default") -> str:
11
+ """
12
+ Generates creative prompts for AI tools like image generators or content writers based on a product or topic description.
13
+
14
+ Args:
15
+ description: Short product/service/topic description.
16
+ audience: Who is the prompt for (e.g., marketers, designers, kids, general)?
17
+ style: Style preference (e.g., SEO, storytelling, inspirational, educational).
18
+ """
19
+ prompts = []
20
+ prompts.append(f"Create a Midjourney image prompt for: {description}, in the style of {style}")
21
+ prompts.append(f"Write a blog outline for '{description}' targeted at {audience}")
22
+ prompts.append(f"Generate a DALL·E prompt to visualize: {description} using {style} cues")
23
+ prompts.append(f"Suggest 3 SEO blog titles about: {description} for {audience}")
24
+ prompts.append(f"Create a tweet hook to promote: {description} using a {style} tone")
25
+
26
+ return "\n".join(prompts)
27
+
28
+
29
+
30
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
31
 
32
  @tool