yoniif commited on
Commit
00961a0
·
verified ·
1 Parent(s): 5f918f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -53,37 +53,37 @@ def format_output(brand_input):
53
  """
54
  return html
55
 
56
- # Custom CSS for light background with dark-blue accents
57
  custom_css = """
58
- body { background-color: #f7f9fb; color: #1a1a1a; font-family: 'Roboto', sans-serif; }
59
- .interface-title { color: #0a1f44 !important; font-size: 2em !important; margin-bottom: 0.2em; }
60
- .interface-description { color: #333333 !important; margin-bottom: 1em; }
61
- #input-box textarea { background-color: #ffffff !important; color: #1a1a1a; border: 2px solid #0a1f44; border-radius: 8px; padding: 0.5em; }
62
- #input-box label { color: #0a1f44; font-weight: 600; }
63
- #output-cards .card { background-color: #ffffff; color: #1a1a1a; border-left: 4px solid #0a1f44; border-radius: 8px; padding: 1em; margin-bottom: 1em; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
64
- #output-cards h3 { margin-bottom: 0.4em; color: #0a1f44; font-size: 1.3em; }
65
- #output-cards .platform { font-size: 0.9em; color: #555555; }
66
- .gr-button { background-color: #0a1f44 !important; color: #ffffff !important; border-radius: 6px !important; }
67
- .gr-button:hover { background-color: #082d6b !important; }
68
  """
69
 
70
  # Build the Gradio interface
71
  demo = gr.Interface(
72
  fn=format_output,
73
  inputs=gr.Textbox(
74
- label="Describe your brand or campaign",
75
- placeholder="e.g. Sustainable fashion brand targeting Gen Z in the US",
76
  lines=3,
77
  elem_id="input-box"
78
  ),
79
  outputs=gr.HTML(elem_id="output-cards"),
80
- title="InfluMatch AI-Powered Influencer Recommender",
81
- description="Enter your brand or campaign description to receive three top influencer matches with niche, region, and engagement details.",
82
  examples=[
83
- ["Skincare brand for Gen Z women in the US"],
84
- ["High-end travel gear targeting adventure enthusiasts in Europe"],
85
- ["Eco-friendly fitness apparel for millennials"],
86
- ["Gourmet pet food brand seeking Instagram influencers in Canada"]
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",