Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ class MultiClientThemeClassifier:
|
|
| 21 |
if not self.model_loaded:
|
| 22 |
try:
|
| 23 |
# Using a smaller, faster model for demo
|
| 24 |
-
self.model = SentenceTransformer('
|
| 25 |
self.model_loaded = True
|
| 26 |
return "β
Model loaded successfully!"
|
| 27 |
except Exception as e:
|
|
@@ -210,9 +210,9 @@ def benchmark_interface(csv_file, client_id: str):
|
|
| 210 |
return f"β Error reading CSV: {str(e)}", "", ""
|
| 211 |
|
| 212 |
# Create the Gradio interface
|
| 213 |
-
with gr.Blocks(title="
|
| 214 |
gr.Markdown("""
|
| 215 |
-
# π―
|
| 216 |
|
| 217 |
**A scalable, cost-effective solution for multi-client theme classification**
|
| 218 |
|
|
@@ -320,7 +320,7 @@ with gr.Blocks(title="Lucidya Custom Themes Classification MVP", theme=gr.themes
|
|
| 320 |
gr.Markdown("""
|
| 321 |
## π― Solution Overview
|
| 322 |
|
| 323 |
-
This MVP demonstrates a **hybrid embedding-based approach** for
|
| 324 |
|
| 325 |
### β
Key Advantages:
|
| 326 |
1. **Cost Effective**: ~$500/month vs $30,000/month for pure LLM approach
|
|
@@ -348,7 +348,7 @@ with gr.Blocks(title="Lucidya Custom Themes Classification MVP", theme=gr.themes
|
|
| 348 |
|
| 349 |
---
|
| 350 |
|
| 351 |
-
**Built for
|
| 352 |
""")
|
| 353 |
|
| 354 |
# Launch the app
|
|
|
|
| 21 |
if not self.model_loaded:
|
| 22 |
try:
|
| 23 |
# Using a smaller, faster model for demo
|
| 24 |
+
self.model = SentenceTransformer('jinaai/jina-embeddings-v3')
|
| 25 |
self.model_loaded = True
|
| 26 |
return "β
Model loaded successfully!"
|
| 27 |
except Exception as e:
|
|
|
|
| 210 |
return f"β Error reading CSV: {str(e)}", "", ""
|
| 211 |
|
| 212 |
# Create the Gradio interface
|
| 213 |
+
with gr.Blocks(title="Company Custom Themes Classification MVP", theme=gr.themes.Soft()) as demo:
|
| 214 |
gr.Markdown("""
|
| 215 |
+
# π― Company Custom Themes Classification - MVP
|
| 216 |
|
| 217 |
**A scalable, cost-effective solution for multi-client theme classification**
|
| 218 |
|
|
|
|
| 320 |
gr.Markdown("""
|
| 321 |
## π― Solution Overview
|
| 322 |
|
| 323 |
+
This MVP demonstrates a **hybrid embedding-based approach** for Company's Custom Themes feature:
|
| 324 |
|
| 325 |
### β
Key Advantages:
|
| 326 |
1. **Cost Effective**: ~$500/month vs $30,000/month for pure LLM approach
|
|
|
|
| 348 |
|
| 349 |
---
|
| 350 |
|
| 351 |
+
**Built for Company's Case Study | Scalable Theme Classification MVP**
|
| 352 |
""")
|
| 353 |
|
| 354 |
# Launch the app
|