AAA1988 commited on
Commit
a2c3301
·
verified ·
1 Parent(s): 01cb29a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ async def respond(message, history, system_message, max_tokens, temperature, top
71
  query_cluster = session_mgr.get_cluster(session_id, query_embedding)
72
 
73
  # Validate cluster stability
74
- if cluster_stability[query_cluster] < 0.3:
75
  yield "Low diagnostic confidence - please consult a healthcare professional"
76
  return
77
 
 
71
  query_cluster = session_mgr.get_cluster(session_id, query_embedding)
72
 
73
  # Validate cluster stability
74
+ if cluster_stability[query_cluster] < 0.7:
75
  yield "Low diagnostic confidence - please consult a healthcare professional"
76
  return
77