Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,37 +53,37 @@ def format_output(brand_input):
|
|
| 53 |
"""
|
| 54 |
return html
|
| 55 |
|
| 56 |
-
# Custom CSS for
|
| 57 |
custom_css = """
|
| 58 |
-
body { background-color: #
|
| 59 |
-
.interface-title { color: #
|
| 60 |
-
.interface-description { color: #
|
| 61 |
-
#input-box textarea { background-color: #
|
| 62 |
-
#input-box label { color: #
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
#output-cards .
|
| 66 |
-
|
| 67 |
-
.
|
| 68 |
"""
|
| 69 |
|
| 70 |
# Build the Gradio interface
|
| 71 |
demo = gr.Interface(
|
| 72 |
fn=format_output,
|
| 73 |
inputs=gr.Textbox(
|
| 74 |
-
label="
|
| 75 |
-
placeholder="e.g.
|
| 76 |
lines=3,
|
| 77 |
elem_id="input-box"
|
| 78 |
),
|
| 79 |
outputs=gr.HTML(elem_id="output-cards"),
|
| 80 |
-
title="InfluMatch
|
| 81 |
-
description="
|
| 82 |
examples=[
|
| 83 |
-
["
|
| 84 |
-
["
|
| 85 |
-
["
|
| 86 |
-
["
|
| 87 |
],
|
| 88 |
css=custom_css,
|
| 89 |
theme="default",
|
|
|
|
| 53 |
"""
|
| 54 |
return html
|
| 55 |
|
| 56 |
+
# Custom CSS for dark blue theme
|
| 57 |
custom_css = """
|
| 58 |
+
body { background-color: #0a1f44; color: #ffffff; font-family: 'Segoe UI', sans-serif; }
|
| 59 |
+
.interface-title { color: #e0e0e0 !important; font-size: 2em !important; text-shadow: 1px 1px #000000; }
|
| 60 |
+
.interface-description { color: #cccccc !important; font-size: 1.1em; margin-bottom: 1.5em; }
|
| 61 |
+
#input-box textarea { background-color: #112857 !important; color: #ffffff; border: 2px solid #1e3a6e; border-radius: 8px; padding: 0.7em; }
|
| 62 |
+
#input-box label { color: #ffffff !important; font-weight: 600; }
|
| 63 |
+
.gr-button { background-color: #1e3a6e !important; color: #ffffff !important; border-radius: 6px !important; padding: 0.6em 1.2em !important; }
|
| 64 |
+
.gr-button:hover { background-color: #162b53 !important; }
|
| 65 |
+
#output-cards .card { background-color: #112857; color: #f0f0f0; border: 1px solid #1e3a6e; border-radius: 10px; padding: 1.2em; margin-bottom: 1.2em; box-shadow: 0 4px 8px rgba(0,0,0,0.5); }
|
| 66 |
+
#output-cards h3 { margin-bottom: 0.5em; color: #ffc857; font-size: 1.4em; }
|
| 67 |
+
#output-cards .platform { font-size: 0.9em; color: #dddddd; }
|
| 68 |
"""
|
| 69 |
|
| 70 |
# Build the Gradio interface
|
| 71 |
demo = gr.Interface(
|
| 72 |
fn=format_output,
|
| 73 |
inputs=gr.Textbox(
|
| 74 |
+
label="Enhance Your Social Media Marketing",
|
| 75 |
+
placeholder="e.g. Targeted fitness brand outreach for Gen Z",
|
| 76 |
lines=3,
|
| 77 |
elem_id="input-box"
|
| 78 |
),
|
| 79 |
outputs=gr.HTML(elem_id="output-cards"),
|
| 80 |
+
title="InfluMatch: Targeted Influencer Discovery",
|
| 81 |
+
description="Leverage AI to pinpoint the perfect influencers for your niche and boost your social media campaigns.",
|
| 82 |
examples=[
|
| 83 |
+
["Sustainable fashion campaign targeting eco-conscious millennials"],
|
| 84 |
+
["Tech gadget launch aimed at early adopters in the US"],
|
| 85 |
+
["Healthy snack brand outreach for fitness enthusiasts"],
|
| 86 |
+
["Luxury travel experiences for affluent couples in Europe"]
|
| 87 |
],
|
| 88 |
css=custom_css,
|
| 89 |
theme="default",
|