cvips
commited on
Commit
·
4d2300f
1
Parent(s):
523cd54
bomedllamv2 integrated
Browse files
app.py
CHANGED
@@ -274,10 +274,11 @@ def process_image(image_path, user_prompt, modality=None):
|
|
274 |
image = read_rgb(image_path)
|
275 |
pil_image = Image.fromarray(image)
|
276 |
|
277 |
-
question = (
|
278 |
-
|
279 |
-
|
280 |
-
)
|
|
|
281 |
msgs = [{'role': 'user', 'content': [pil_image, question]}]
|
282 |
|
283 |
llm_response = ""
|
|
|
274 |
image = read_rgb(image_path)
|
275 |
pil_image = Image.fromarray(image)
|
276 |
|
277 |
+
# question = (
|
278 |
+
# f"Analyze this medical image considering the following context: {user_prompt}. "
|
279 |
+
# "Include modality, anatomical structures, and any abnormalities."
|
280 |
+
# )
|
281 |
+
question = 'modality?'
|
282 |
msgs = [{'role': 'user', 'content': [pil_image, question]}]
|
283 |
|
284 |
llm_response = ""
|