yoniif commited on
Commit
42e461b
·
verified ·
1 Parent(s): 8ad376a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -10
app.py CHANGED
@@ -40,18 +40,29 @@ def format_output(brand_input):
40
  output += f"- Followers: {rec['Followers']}\n\n"
41
  return output
42
 
 
43
  demo = gr.Interface(
44
- fn=format_output,
45
- inputs=gr.Textbox(label="Enter your brand or campaign description", placeholder="e.g. Sustainable fashion for Gen Z"),
46
- outputs=gr.Markdown(label="Top 3 Influencer Matches"),
47
- title="InfluMatch: Influencer Recommender",
48
- description="Describe your brand or campaign and get 3 matching influencer suggestions.",
 
 
 
 
 
 
 
 
 
49
  examples=[
50
- ["Tech gadgets for millennial men"],
51
- ["Skincare brand for Gen Z in the US"],
52
- ["Luxury travel experiences for couples"],
53
- ["Eco-friendly fashion accessories"]
54
- ]
 
55
  )
56
 
57
  if __name__ == "__main__":
 
40
  output += f"- Followers: {rec['Followers']}\n\n"
41
  return output
42
 
43
+ # Build the interface
44
  demo = gr.Interface(
45
+ fn=recommend_influencers,
46
+ inputs=gr.Textbox(
47
+ label="Describe your brand or campaign",
48
+ placeholder="e.g. Sustainable fashion brand targeting Gen Z in the US",
49
+ lines=3
50
+ ),
51
+ outputs=gr.HTML(),
52
+ title="InfluMatch – AI-Powered Influencer Recommender",
53
+ description="""
54
+ <div style='font-size: 1.1em; color: #333;'>
55
+ <p><strong>InfluMatch</strong> helps you discover the perfect influencers for your brand or campaign using state-of-the-art AI.</p>
56
+ <p>Just describe your brand, and we'll instantly recommend three top influencers who match your niche, audience, and goals.</p>
57
+ </div>
58
+ """,
59
  examples=[
60
+ ["Skincare brand for Gen Z women in the US"],
61
+ ["Luxury watches targeting high-net-worth individuals in Europe"],
62
+ ["Eco-friendly fitness gear for millennials"],
63
+ ["Pet food brand seeking TikTok creators in Canada"]
64
+ ],
65
+ theme="default"
66
  )
67
 
68
  if __name__ == "__main__":