hamxaameer commited on
Commit
87985ca
Β·
verified Β·
1 Parent(s): 0a73b6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -28
app.py CHANGED
@@ -522,34 +522,34 @@ def startup():
522
  # Initialize on startup
523
  startup()
524
 
525
- # Create Gradio interface
526
- demo = gr.ChatInterface(
527
- fn=fashion_chatbot,
528
- title="πŸ‘— Fashion Advisor - RAG System",
529
- description="""
530
- **Ask me anything about fashion!** 🌟
531
-
532
- I can help with:
533
- - Outfit recommendations for occasions
534
- - Color combinations and styling
535
- - Seasonal fashion advice
536
- - Body type and fit guidance
537
- - Wardrobe essentials
538
-
539
- *Powered by RAG with FAISS vector search and local LLM*
540
- """,
541
- examples=[
542
- "What should I wear to a business meeting?",
543
- "What colors go well with navy blue?",
544
- "What are essential wardrobe items for fall?",
545
- "How to dress for a summer wedding?",
546
- "What's the best outfit for a university presentation?",
547
- ],
548
- theme=gr.themes.Soft(),
549
- retry_btn=None,
550
- undo_btn="Delete Previous",
551
- clear_btn="Clear Chat",
552
- )
553
 
554
  # Launch
555
  if __name__ == "__main__":
 
522
  # Initialize on startup
523
  startup()
524
 
525
+ # Create Gradio interface with theme applied separately
526
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
527
+ gr.ChatInterface(
528
+ fn=fashion_chatbot,
529
+ title="πŸ‘— Fashion Advisor - RAG System",
530
+ description="""
531
+ **Ask me anything about fashion!** 🌟
532
+
533
+ I can help with:
534
+ - Outfit recommendations for occasions
535
+ - Color combinations and styling
536
+ - Seasonal fashion advice
537
+ - Body type and fit guidance
538
+ - Wardrobe essentials
539
+
540
+ *Powered by RAG with FAISS vector search and local LLM*
541
+ """,
542
+ examples=[
543
+ "What should I wear to a business meeting?",
544
+ "What colors go well with navy blue?",
545
+ "What are essential wardrobe items for fall?",
546
+ "How to dress for a summer wedding?",
547
+ "What's the best outfit for a university presentation?",
548
+ ],
549
+ retry_btn=None,
550
+ undo_btn="Delete Previous",
551
+ clear_btn="Clear Chat",
552
+ )
553
 
554
  # Launch
555
  if __name__ == "__main__":