Added a Home page, tried to beautify

#5
Files changed (1) hide show
  1. app.py +20 -6
app.py CHANGED
@@ -411,9 +411,8 @@ class LLaMAAssistant:
411
  return f"Response generation error: {e}"
412
 
413
  def render_chat():
414
- st.header("πŸ’¬ Business AI Assistant")
415
-
416
- # Embed the Hugging Face Space iframe
417
  st.write("""
418
  <iframe
419
  src="https://demoorganisation34-chatbot-for-prospira.hf.space"
@@ -423,7 +422,21 @@ def render_chat():
423
  ></iframe>
424
  """, unsafe_allow_html=True)
425
 
426
- # Replace the existing render_chat() function in your main.py with this implementation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  def main():
428
  st.set_page_config(
429
  page_title="Prospira",
@@ -438,9 +451,10 @@ def main():
438
 
439
  page = st.radio(
440
  "Navigation",
441
- ["Dashboard", "Analytics", "Brainstorm", "Chat"]
442
  )
443
-
 
444
  if page == "Dashboard":
445
  render_dashboard()
446
  elif page == "Analytics":
 
411
  return f"Response generation error: {e}"
412
 
413
  def render_chat():
414
+ st.header("πŸ’¬AI Business Mentor")
415
+ st.title("πŸ€– Prospira AI Business Mentor")
 
416
  st.write("""
417
  <iframe
418
  src="https://demoorganisation34-chatbot-for-prospira.hf.space"
 
422
  ></iframe>
423
  """, unsafe_allow_html=True)
424
 
425
+ def render_home():
426
+ st.title("πŸš€ Welcome to Prospira")
427
+ st.subheader("πŸ“Š Data-Driven Solutions for Businesses and Creators")
428
+
429
+ st.markdown("""
430
+ **Prospira** empowers businesses and creators to enhance their content, products, and marketing strategies using AI-driven insights.
431
+
432
+ ### **✨ Key Features**
433
+ - **πŸ“ˆ Performance Analytics:** Real-time insights into business metrics.
434
+ - **πŸ”Ž Competitive Analysis:** Benchmark your business against competitors.
435
+ - **πŸ’‘ Smart Product Ideas:** AI-generated recommendations for future products and content.
436
+ - **🧠 AI Business Mentor:** Personalized AI guidance for strategy and growth.
437
+ Explore how **Prospira** can help optimize your decision-making and drive success! πŸ’‘πŸš€
438
+ """)
439
+
440
  def main():
441
  st.set_page_config(
442
  page_title="Prospira",
 
451
 
452
  page = st.radio(
453
  "Navigation",
454
+ ["Home", "Dashboard", "Analytics", "Brainstorm", "Chat"]
455
  )
456
+ if page == "Home":
457
+ render_home()
458
  if page == "Dashboard":
459
  render_dashboard()
460
  elif page == "Analytics":