Update app.py
Browse files
app.py
CHANGED
|
@@ -522,34 +522,34 @@ def startup():
|
|
| 522 |
# Initialize on startup
|
| 523 |
startup()
|
| 524 |
|
| 525 |
-
# Create Gradio interface
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 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__":
|