aaronmat1905 commited on
Commit
f64eb13
·
verified ·
1 Parent(s): df4f4dc
Files changed (1) hide show
  1. app.py +14 -28
app.py CHANGED
@@ -360,19 +360,7 @@ def render_brainstorm_page():
360
  st.info("No products yet. Create one to get started!")
361
 
362
 
363
- class LLaMAAssistant:
364
- def __init__(self, model_name="meta-llama/Llama-2-7b-chat-hf"):
365
- try:
366
- self.tokenizer = AutoTokenizer.from_pretrained(model_name)
367
- self.model = AutoModelForCausalLM.from_pretrained(
368
- model_name,
369
- torch_dtype=torch.float16,
370
- device_map="auto"
371
- )
372
- except Exception as e:
373
- st.error(f"Model loading error: {e}")
374
- self.model = None
375
- self.tokenizer = None
376
 
377
  def generate_response(self, prompt: str, context: list = None) -> str:
378
  if not self.model or not self.tokenizer:
@@ -420,20 +408,6 @@ def render_chat():
420
  ></iframe>
421
  """, unsafe_allow_html=True)
422
 
423
- def render_home():
424
- st.title("🚀 Welcome to Prospira")
425
- st.subheader("📊 Data-Driven Solutions for Businesses and Creators")
426
- st.markdown("""
427
- **Prospira** empowers businesses and creators to enhance their content, products, and marketing strategies using AI-driven insights.
428
-
429
- ### **✨ Key Features**
430
- - **📈 Performance Analytics:** Real-time insights into business metrics.
431
- - **🔎 Competitive Analysis:** Benchmark your business against competitors.
432
- - **💡 Smart Product Ideas:** AI-generated recommendations for future products and content.
433
- - **🧠 AI Business Mentor:** Personalized AI guidance for strategy and growth.
434
- Explore how **Prospira** can help optimize your decision-making and drive success! 💡🚀
435
- """)
436
-
437
  def main():
438
  st.set_page_config(
439
  page_title="Prospira",
@@ -443,7 +417,19 @@ def main():
443
  ["Home", "Dashboard", "Analytics", "Brainstorm", "Chat"]
444
  )
445
  if page == "Home":
446
- render_home()
 
 
 
 
 
 
 
 
 
 
 
 
447
  if page == "Dashboard":
448
  render_dashboard()
449
  elif page == "Analytics":
 
360
  st.info("No products yet. Create one to get started!")
361
 
362
 
363
+
 
 
 
 
 
 
 
 
 
 
 
 
364
 
365
  def generate_response(self, prompt: str, context: list = None) -> str:
366
  if not self.model or not self.tokenizer:
 
408
  ></iframe>
409
  """, unsafe_allow_html=True)
410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  def main():
412
  st.set_page_config(
413
  page_title="Prospira",
 
417
  ["Home", "Dashboard", "Analytics", "Brainstorm", "Chat"]
418
  )
419
  if page == "Home":
420
+ st.title("🚀 Welcome to Prospira")
421
+ st.subheader("📊 Data-Driven Solutions for Businesses and Creators")
422
+ st.markdown("""
423
+ **Prospira** empowers businesses and creators to enhance their content, products, and marketing strategies using AI-driven insights.
424
+
425
+ ### **✨ Key Features**
426
+ - **📈 Performance Analytics:** Real-time insights into business metrics.
427
+ - **🔎 Competitive Analysis:** Benchmark your business against competitors.
428
+ - **💡 Smart Product Ideas:** AI-generated recommendations for future products and content.
429
+ - **🧠 AI Business Mentor:** Personalized AI guidance for strategy and growth.
430
+ Explore how **Prospira** can help optimize your decision-making and drive success! 💡🚀
431
+ """)
432
+
433
  if page == "Dashboard":
434
  render_dashboard()
435
  elif page == "Analytics":