ayush200399391001 commited on
Commit
ae6054f
·
verified ·
1 Parent(s): 236f289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -225,7 +225,9 @@ def symptom_interrogation_step():
225
  focusing on {focus} to differentiate serious causes. Your task is to have a polite and simple conversation with a patient.
226
  Start by asking ONE specific follow-up question about their initial symptom: {main_symptom}.
227
  Ask only one question at a time to avoid overwhelming the patient.
228
- Keep your language clear, professional, and easy to understand."""
 
 
229
 
230
  messages = [
231
  {"role": "system", "content": "Ask focused clinical questions. One at a time."},
@@ -365,13 +367,13 @@ Recent Travel: {st.session_state.patient_info.get('recent_travel', 'None')}
365
 
366
  analysis_prompt = f"""STRICTLY follow these instructions:
367
  1. Analyze this case: {patient_profile}
368
- 2. Output ONLY this exact format WITHOUT ANY additional text:
369
- [Age]-year-old [gender] with [symptom details]
370
-
371
  Example Output:
372
  "45-year-old man with severe chest pain radiating to the jaw"
 
373
 
374
- Your Output MUST BE:"""
375
 
376
  response = st.session_state.client.chat.completions.create(
377
  messages=[
 
225
  focusing on {focus} to differentiate serious causes. Your task is to have a polite and simple conversation with a patient.
226
  Start by asking ONE specific follow-up question about their initial symptom: {main_symptom}.
227
  Ask only one question at a time to avoid overwhelming the patient.
228
+ Keep your language clear, professional, and easy to understand.
229
+
230
+ Dont display possibe symptoms or why you are asking questions."""
231
 
232
  messages = [
233
  {"role": "system", "content": "Ask focused clinical questions. One at a time."},
 
367
 
368
  analysis_prompt = f"""STRICTLY follow these instructions:
369
  1. Analyze this case: {patient_profile}
370
+ 2. *Include ONLY symptoms the patient is actively experiencing*. Exclude all negated symptoms (e.g., "no fever," "denies breathlessness").
371
+ 3. Output *EXCLUSIVELY* in this format with NO additional text or explanations:
372
+ [Age]-year-old [gender] with [specific, present symptoms].
373
  Example Output:
374
  "45-year-old man with severe chest pain radiating to the jaw"
375
+ Your Output:"""
376
 
 
377
 
378
  response = st.session_state.client.chat.completions.create(
379
  messages=[