Yordann commited on
Commit
531fa18
·
verified ·
1 Parent(s): 92715fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -101,7 +101,7 @@ def reset_textbox():
101
  # Convert logo to base64
102
  def get_logo_base64():
103
  try:
104
- with open("/home/ubuntu/masterbrand_logo.jpg", "rb") as img_file:
105
  return base64.b64encode(img_file.read()).decode()
106
  except:
107
  return ""
@@ -151,8 +151,8 @@ custom_css = f"""
151
  }}
152
 
153
  .logo-image {{
154
- width: 80px !important;
155
- height: 80px !important;
156
  border-radius: 15px !important;
157
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5) !important;
158
  animation: pulse-glow 2s ease-in-out infinite alternate !important;
@@ -434,9 +434,6 @@ masterbrand_theme = gr.themes.Base(primary_hue="red").set(
434
 
435
  # ==== Enhanced UI ====
436
  with gr.Blocks(theme=masterbrand_theme, css=custom_css, title="MasterBrand AI Assistant") as demo:
437
- gr.Image(value="logo.png", show_label=False, container=False)
438
- gr.Markdown("# MASTERBRAND AI ASSISTANT")
439
-
440
  # Enhanced header with logo
441
  logo_html = f"""
442
  <div class="main-header">
 
101
  # Convert logo to base64
102
  def get_logo_base64():
103
  try:
104
+ with open("/home/ubuntu/new_logo.png", "rb") as img_file:
105
  return base64.b64encode(img_file.read()).decode()
106
  except:
107
  return ""
 
151
  }}
152
 
153
  .logo-image {{
154
+ width: 50px !important;
155
+ height: 50px !important;
156
  border-radius: 15px !important;
157
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5) !important;
158
  animation: pulse-glow 2s ease-in-out infinite alternate !important;
 
434
 
435
  # ==== Enhanced UI ====
436
  with gr.Blocks(theme=masterbrand_theme, css=custom_css, title="MasterBrand AI Assistant") as demo:
 
 
 
437
  # Enhanced header with logo
438
  logo_html = f"""
439
  <div class="main-header">