reset to biomedparse+biomedllama_3b_multimodal
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def extract_modality_and_prompts(llm_output):
|
|
154 |
'colon': 'Endoscopy',
|
155 |
'pathological': 'Pathology',
|
156 |
# 'tissue': 'Pathology',
|
157 |
-
|
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?
|
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 = ""
|