rivapereira123 commited on
Commit
64d4c08
·
verified ·
1 Parent(s): 97b2b3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -483,7 +483,8 @@ Provide clear, actionable advice while emphasizing the need for professional med
483
  """Generate response using T5-style seq2seq model with Gaza-specific context"""
484
  if self.llm is None or self.tokenizer is None:
485
  return self._generate_fallback_response(query, context)
486
- prompt = f"""{self.system_prompt}
 
487
  MEDICAL KNOWLEDGE CONTEXT:
488
  {context}
489
 
@@ -522,6 +523,7 @@ RESPONSE (provide practical, Gaza-appropriate medical guidance):"""
522
  line = line.strip()
523
  if line and line not in unique_lines and len(line) > 10:
524
  unique_lines.append(line)
 
525
  final_response = '\n'.join(unique_lines)
526
  logger.info(f"🧪 Final cleaned response:\n{final_response}")
527
  return final_response
 
483
  """Generate response using T5-style seq2seq model with Gaza-specific context"""
484
  if self.llm is None or self.tokenizer is None:
485
  return self._generate_fallback_response(query, context)
486
+
487
+ prompt = f"""{self.system_prompt}
488
  MEDICAL KNOWLEDGE CONTEXT:
489
  {context}
490
 
 
523
  line = line.strip()
524
  if line and line not in unique_lines and len(line) > 10:
525
  unique_lines.append(line)
526
+
527
  final_response = '\n'.join(unique_lines)
528
  logger.info(f"🧪 Final cleaned response:\n{final_response}")
529
  return final_response