Vineet commited on
Commit
a2f9f51
·
1 Parent(s): f2cee5e

Completely remove category probabilities from UI and fix MongoDB connection string support

Browse files
ml-service/requirements.txt CHANGED
@@ -34,7 +34,8 @@ emoji>=2.9.0
34
 
35
  # --- Database (async MongoDB for feedback) ---
36
  motor>=3.3.2
37
- pymongo>=4.6.1
 
38
 
39
  # --- Monitoring ---
40
  prometheus-fastapi-instrumentator>=6.1.0
 
34
 
35
  # --- Database (async MongoDB for feedback) ---
36
  motor>=3.3.2
37
+ pymongo[srv]>=4.6.1
38
+ dnspython>=2.0.0
39
 
40
  # --- Monitoring ---
41
  prometheus-fastapi-instrumentator>=6.1.0
python-frontend/app.py CHANGED
@@ -382,11 +382,6 @@ for idx, msg in enumerate(st.session_state.messages):
382
  <div style="font-size:0.95rem; color:#fca5a5; margin-bottom:14px;">
383
  ⚠️ <span style="text-decoration:line-through; opacity:0.7;">{msg['content']}</span>
384
  </div>
385
- <div style="font-size:0.78rem; color:#9ca3af; margin-bottom:6px; font-weight:500;">
386
- CATEGORY PROBABILITIES
387
- </div>
388
- {render_categories(mod.get('categories', dict()))}
389
-
390
  </div>
391
  """, unsafe_allow_html=True)
392
 
 
382
  <div style="font-size:0.95rem; color:#fca5a5; margin-bottom:14px;">
383
  ⚠️ <span style="text-decoration:line-through; opacity:0.7;">{msg['content']}</span>
384
  </div>
 
 
 
 
 
385
  </div>
386
  """, unsafe_allow_html=True)
387