Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 45 |
-
inputs=gr.Textbox(
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
examples=[
|
| 50 |
-
["
|
| 51 |
-
["
|
| 52 |
-
["
|
| 53 |
-
["
|
| 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__":
|