scdrand23 commited on
Commit
51fb737
·
1 Parent(s): 67ab029

reset to biomedparse+biomedllama_3b_multimodal

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -154,7 +154,7 @@ def extract_modality_and_prompts(llm_output):
154
  'colon': 'Endoscopy',
155
  'pathological': 'Pathology',
156
  # 'tissue': 'Pathology',
157
- # 'histolog': 'Pathology',
158
  'x-ray': 'X-Ray-Chest',
159
  'xray': 'X-Ray-Chest',
160
  'chest radiograph': 'X-Ray-Chest',
@@ -292,7 +292,7 @@ def process_image(image_path, user_prompt, modality=None):
292
  # f"Analyze this medical image considering the following context: {user_prompt}. "
293
  # "Include modality, anatomical structures, and any abnormalities."
294
  # )
295
- question = 'What type of medical imaging modality is this? Please be specific.'
296
  msgs = [{'role': 'user', 'content': [pil_image, question]}]
297
 
298
  llm_response = ""
 
154
  'colon': 'Endoscopy',
155
  'pathological': 'Pathology',
156
  # 'tissue': 'Pathology',
157
+ 'histolog': 'Pathology',
158
  'x-ray': 'X-Ray-Chest',
159
  'xray': 'X-Ray-Chest',
160
  'chest radiograph': 'X-Ray-Chest',
 
292
  # f"Analyze this medical image considering the following context: {user_prompt}. "
293
  # "Include modality, anatomical structures, and any abnormalities."
294
  # )
295
+ question = 'What type of medical imaging modality is this? which organ? Be specific.'
296
  msgs = [{'role': 'user', 'content': [pil_image, question]}]
297
 
298
  llm_response = ""