leninqwerty03@gmail.com commited on
Commit
feac5bb
·
1 Parent(s): 1ae5260

Improve eco-friendly theme with enhanced contrast for better visibility in the assessment app

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -408,6 +408,7 @@ def assess_product_agentic(image, text_input: str, progress=gr.Progress()) -> st
408
  import traceback
409
  return f"**Error:**\n\n{str(e)}\n\n```\n{traceback.format_exc()}\n```"
410
 
 
411
  # ===== ECO-FRIENDLY GREEN THEME - IMPROVED CONTRAST =====
412
  eco_green_css = """
413
  /* Eco-Friendly Green Theme - Mobile Optimized with Better Contrast */
@@ -670,9 +671,12 @@ button:focus, input:focus, textarea:focus {
670
  }
671
  """
672
 
673
- with gr.Blocks(css=eco_green_css, title="Future Earth - Eco Advisor") as app:
674
 
675
- gr.HTML("""
 
 
 
676
  <div style="text-align: center; padding: 2rem 1rem; background: linear-gradient(135deg, #4caf50 0%, #2d8659 100%); border-radius: 16px; margin-bottom: 1.5rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);">
677
  <h1 style="margin: 0; font-size: 2.2rem; color: #ffffff; font-weight: bold; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); letter-spacing: 1px;">🌍 FUTURE EARTH</h1>
678
  <p style="color: #ffffff; margin-top: 0.5rem; font-size: 1rem; letter-spacing: 1px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);">Your AI-Powered Eco Advisor</p>
@@ -708,8 +712,8 @@ with gr.Blocks(css=eco_green_css, title="Future Earth - Eco Advisor") as app:
708
 
709
  gr.HTML("""
710
  <footer style="background: rgba(0, 0, 0, 0.15); border-top: 2px solid #4caf50; margin-top: 2rem; padding: 1.5rem 1rem; border-radius: 8px;">
711
- <p style="color: #000000; letter-spacing: 1px; font-size: 0.95rem; margin: 0;">♻️ Powered by AI • MCP • RAG Technology</p>
712
- <p style="color: #000000; font-size: 0.85rem; margin-top: 0.5rem;">Building a sustainable future, one assessment at a time</p>
713
  </footer>
714
  """)
715
 
 
408
  import traceback
409
  return f"**Error:**\n\n{str(e)}\n\n```\n{traceback.format_exc()}\n```"
410
 
411
+ # ===== ECO-FRIENDLY GREEN THEME - IMPROVED CONTRAST =====
412
  # ===== ECO-FRIENDLY GREEN THEME - IMPROVED CONTRAST =====
413
  eco_green_css = """
414
  /* Eco-Friendly Green Theme - Mobile Optimized with Better Contrast */
 
671
  }
672
  """
673
 
674
+ with gr.Blocks(title="Future Earth - Eco Advisor") as app:
675
 
676
+ gr.HTML(f"""
677
+ <style>
678
+ {eco_green_css}
679
+ </style>
680
  <div style="text-align: center; padding: 2rem 1rem; background: linear-gradient(135deg, #4caf50 0%, #2d8659 100%); border-radius: 16px; margin-bottom: 1.5rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);">
681
  <h1 style="margin: 0; font-size: 2.2rem; color: #ffffff; font-weight: bold; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); letter-spacing: 1px;">🌍 FUTURE EARTH</h1>
682
  <p style="color: #ffffff; margin-top: 0.5rem; font-size: 1rem; letter-spacing: 1px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);">Your AI-Powered Eco Advisor</p>
 
712
 
713
  gr.HTML("""
714
  <footer style="background: rgba(0, 0, 0, 0.15); border-top: 2px solid #4caf50; margin-top: 2rem; padding: 1.5rem 1rem; border-radius: 8px;">
715
+ <p style="color: #ffffff; letter-spacing: 1px; font-size: 0.95rem; margin: 0; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);">♻️ Powered by AI • MCP • RAG Technology</p>
716
+ <p style="color: #c8e6c9; font-size: 0.85rem; margin-top: 0.5rem; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);">Building a sustainable future, one assessment at a time</p>
717
  </footer>
718
  """)
719