saibalajiomg commited on
Commit
f33ed0b
·
verified ·
1 Parent(s): b5326db

Deploy SupportPulse demo: Gradio triage interface with pre-computed results

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -178,7 +178,7 @@ def run_triage(subject: str, body: str) -> tuple:
178
  </div>
179
 
180
  <div style="font-size: 11px; color: #475569; text-align: right;">
181
- SupportPulse AI Pipeline | {datetime.now().strftime('%H:%M:%S')} | Model: gemma2:2b + LightGBM SLA
182
  </div>
183
  </div>
184
  """
@@ -248,7 +248,7 @@ def run_triage(subject: str, body: str) -> tuple:
248
  <h3 style="margin: 0 0 12px; color: #f1f5f9;">AI-Generated Grounded Response (RAG)</h3>
249
  <p style="line-height: 1.7; color: #cbd5e1;">{rag_response}</p>
250
  <div style="margin-top: 12px; font-size: 12px; color: #475569;">
251
- Generated by gemma2:2b grounded on {len(result.get('similar_tickets',[]))} retrieved historical tickets
252
  </div>
253
  </div>
254
  """
@@ -282,7 +282,7 @@ with gr.Blocks(title="SupportPulse Intelligence Platform") as demo:
282
  SupportPulse Intelligence Platform
283
  </h1>
284
  <p style="color: #94a3b8; margin: 10px 0 0; font-size: 1.1rem;">
285
- End-to-End MLOps | LLM Cascade &middot; RAG &middot; ChromaDB &middot; LightGBM &middot; FastAPI
286
  </p>
287
  <div style="margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;">
288
  <span style="background: #1e3a5f; color: #60a5fa; padding: 4px 12px; border-radius: 20px; font-size: 13px;">68,235 tickets indexed</span>
 
178
  </div>
179
 
180
  <div style="font-size: 11px; color: #475569; text-align: right;">
181
+ SupportPulse AI Pipeline | {datetime.now().strftime('%H:%M:%S')} | Model: gemma4:e4b + LightGBM SLA
182
  </div>
183
  </div>
184
  """
 
248
  <h3 style="margin: 0 0 12px; color: #f1f5f9;">AI-Generated Grounded Response (RAG)</h3>
249
  <p style="line-height: 1.7; color: #cbd5e1;">{rag_response}</p>
250
  <div style="margin-top: 12px; font-size: 12px; color: #475569;">
251
+ Generated by gemma4:e4b grounded on {len(result.get('similar_tickets',[]))} retrieved historical tickets
252
  </div>
253
  </div>
254
  """
 
282
  SupportPulse Intelligence Platform
283
  </h1>
284
  <p style="color: #94a3b8; margin: 10px 0 0; font-size: 1.1rem;">
285
+ End-to-End MLOps | LLM Cascade (gemma4:e4b) &middot; RAG &middot; ChromaDB &middot; LightGBM &middot; FastAPI
286
  </p>
287
  <div style="margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;">
288
  <span style="background: #1e3a5f; color: #60a5fa; padding: 4px 12px; border-radius: 20px; font-size: 13px;">68,235 tickets indexed</span>