Ali2206 commited on
Commit
4e4aafc
·
verified ·
1 Parent(s): b1ba80b

Update ui/ui_core.py

Browse files
Files changed (1) hide show
  1. ui/ui_core.py +6 -4
ui/ui_core.py CHANGED
@@ -58,10 +58,12 @@ def create_ui(agent: TxAgent):
58
 
59
  def handle_chat(message, history, conversation, uploaded_files, progress=gr.Progress()):
60
  context = (
61
- "You are an advanced clinical reasoning AI. You have just received raw medical data extracted from patient forms, lab reports, or interview tables. "
62
- "Your goal is to analyze this data like a clinical expert. Go step by step to detect patterns, spot unusual or missing info, and identify clinical red flags "
63
- "or overlooked findings. Use medically grounded reasoning. Be detailed. At the end, explain what the doctor may have missed and why it matters. "
64
- "Include examples, reference clinical logic, and suggest what should have been asked or done. This response will help improve real-world diagnostics."
 
 
65
  )
66
 
67
  if uploaded_files:
 
58
 
59
  def handle_chat(message, history, conversation, uploaded_files, progress=gr.Progress()):
60
  context = (
61
+ "You are an expert clinical AI assistant reviewing medical form or interview data. "
62
+ "Your job is to analyze this data and reason about any information or red flags that a human doctor might have overlooked. "
63
+ "Provide a **detailed and structured response**, including examples, supporting evidence from the form, and clinical rationale for why these items matter. "
64
+ "Ensure the output is informative and helpful for improving patient care. "
65
+ "Do not hallucinate. Base the response only on the provided form content. "
66
+ "End with a section labeled '🧠 Final Analysis' where you summarize key findings the doctor may have missed."
67
  )
68
 
69
  if uploaded_files: