Mohaddz commited on
Commit
f2a0cd5
Β·
verified Β·
1 Parent(s): 0c5a75b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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('all-MiniLM-L6-v2')
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="Lucidya Custom Themes Classification MVP", theme=gr.themes.Soft()) as demo:
214
  gr.Markdown("""
215
- # 🎯 Lucidya Custom Themes Classification - MVP
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 Lucidya's Custom Themes feature:
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 Lucidya's Case Study | Scalable Theme Classification MVP**
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