kaushalya commited on
Commit
e810c3c
1 Parent(s): aa31199

Add more images

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. app.py +7 -2
  2. images/PMC2715470_12105_2009_108_Fig1_HTML.jpg +0 -0
  3. images/PMC2718108_kjr-2-97-g002.jpg +0 -0
  4. images/PMC2718201_kjr-1-198-g001.jpg +0 -0
  5. images/PMC2718201_kjr-1-198-g016.jpg +0 -0
  6. images/PMC2722009_jkms-21-936-g003.jpg +0 -0
  7. images/PMC2722708_jkms-21-859-g003.jpg +0 -0
  8. images/PMC2722873_cia-4-337f1.jpg +0 -0
  9. images/PMC2722873_cia-4-337f2.jpg +0 -0
  10. images/PMC2724385_1746-160X-5-15-5.jpg +0 -0
  11. images/PMC2726475_1752-1947-0003-0000006658-2.jpg +0 -0
  12. images/PMC2726502_1752-1947-0003-0000007306-2.jpg +0 -0
  13. images/PMC2726511_1752-1947-0003-0000007301-2.jpg +0 -0
  14. images/PMC2727506_1749-8090-4-40-1.jpg +0 -0
  15. images/PMC2727971_ci07901404.jpg +0 -0
  16. images/PMC2727978_ci07904704.jpg +0 -0
  17. images/PMC2728202_gr6.jpg +0 -0
  18. images/PMC2729228_wjem-10-205f1.jpg +0 -0
  19. images/PMC2729251_CRM2009-728629.002.jpg +0 -0
  20. images/PMC2729255_CRM2009-257136.005.jpg +0 -0
  21. images/PMC2729301_1758-2555-1-15-1.jpg +0 -0
  22. images/PMC2729450_CRM2009-653741.002.jpg +0 -0
  23. images/PMC2729892_jkms-21-690-g002.jpg +0 -0
  24. images/PMC2730620_ymj-50-560-g002.jpg +0 -0
  25. images/PMC2733215_ci07901308.jpg +0 -0
  26. images/PMC2736945_1749-8090-4-44-1.jpg +0 -0
  27. images/PMC2737797_1752-1947-0003-0000007412-1.jpg +0 -0
  28. images/PMC2739499_IJO-43-6-g001.jpg +0 -0
  29. images/PMC2739847_1749-7922-4-32-5.jpg +0 -0
  30. images/PMC2740009_1757-1626-0002-0000007083-002.jpg +0 -0
  31. images/PMC2740028_1757-1626-0002-0000007346-004.jpg +0 -0
  32. images/PMC2740042_1757-1626-0002-0000007991-003.jpg +0 -0
  33. images/PMC2740073_1757-1626-0002-0000007970-001.jpg +0 -0
  34. images/PMC2740093_1757-1626-0002-0000006729-004.jpg +0 -0
  35. images/PMC2740093_1757-1626-0002-0000006729-005.jpg +0 -0
  36. images/PMC2740094_1757-1626-0002-0000006967-002.jpg +0 -0
  37. images/PMC2740094_1757-1626-0002-0000006967-006.jpg +0 -0
  38. images/PMC2740104_1757-1626-0002-0000006771-003.jpg +0 -0
  39. images/PMC2740105_1757-1626-0002-0000006351-004.jpg +0 -0
  40. images/PMC2740135_1757-1626-0002-0000007965-001.jpg +0 -0
  41. images/PMC2740178_1757-1626-0002-0000007148-003.jpg +0 -0
  42. images/PMC2740186_1757-1626-0002-0000007776-002.jpg +0 -0
  43. images/PMC2740188_1757-1626-0002-0000007743-002.jpg +0 -0
  44. images/PMC2740232_1757-1626-0002-0000008474-003.jpg +0 -0
  45. images/PMC2740240_1757-1626-0002-0000006866-004.jpg +0 -0
  46. images/PMC2740240_1757-1626-0002-0000006866-006.jpg +0 -0
  47. images/PMC2740260_1757-1626-0002-0000007299-003.jpg +0 -0
  48. images/PMC2740276_1757-1626-0002-0000007472-002.jpg +0 -0
  49. images/PMC2740277_1757-1626-0002-0000006963-001.jpg +0 -0
  50. images/PMC2740289_1757-1626-0002-0000006174-002.jpg +0 -0
app.py CHANGED
@@ -20,14 +20,19 @@ def load_image_embeddings():
20
  return image_files, image_embeds
21
 
22
  k = 5
23
- image_list, image_embeddings = load_image_embeddings()
24
- model, processor = load_model()
25
  img_dir = './images'
26
 
27
  st.title("MedCLIP 🩺📎")
28
  st.markdown("Search for medical images in natural language.")
29
  st.markdown("""This demo uses a CLIP model finetuned on the
30
  [Radiology Objects in COntext (ROCO) dataset](https://github.com/razorx89/roco-dataset).""")
 
 
 
 
 
 
 
31
  query = st.text_input("Enter your query here:")
32
 
33
  if st.button("Search"):
 
20
  return image_files, image_embeds
21
 
22
  k = 5
 
 
23
  img_dir = './images'
24
 
25
  st.title("MedCLIP 🩺📎")
26
  st.markdown("Search for medical images in natural language.")
27
  st.markdown("""This demo uses a CLIP model finetuned on the
28
  [Radiology Objects in COntext (ROCO) dataset](https://github.com/razorx89/roco-dataset).""")
29
+ st.markdown("""Example queries:
30
+ * `ultrasound scans`
31
+ * `PET scan`""")
32
+
33
+ image_list, image_embeddings = load_image_embeddings()
34
+ model, processor = load_model()
35
+
36
  query = st.text_input("Enter your query here:")
37
 
38
  if st.button("Search"):
images/PMC2715470_12105_2009_108_Fig1_HTML.jpg ADDED
images/PMC2718108_kjr-2-97-g002.jpg ADDED
images/PMC2718201_kjr-1-198-g001.jpg ADDED
images/PMC2718201_kjr-1-198-g016.jpg ADDED
images/PMC2722009_jkms-21-936-g003.jpg ADDED
images/PMC2722708_jkms-21-859-g003.jpg ADDED
images/PMC2722873_cia-4-337f1.jpg ADDED
images/PMC2722873_cia-4-337f2.jpg ADDED
images/PMC2724385_1746-160X-5-15-5.jpg ADDED
images/PMC2726475_1752-1947-0003-0000006658-2.jpg ADDED
images/PMC2726502_1752-1947-0003-0000007306-2.jpg ADDED
images/PMC2726511_1752-1947-0003-0000007301-2.jpg ADDED
images/PMC2727506_1749-8090-4-40-1.jpg ADDED
images/PMC2727971_ci07901404.jpg ADDED
images/PMC2727978_ci07904704.jpg ADDED
images/PMC2728202_gr6.jpg ADDED
images/PMC2729228_wjem-10-205f1.jpg ADDED
images/PMC2729251_CRM2009-728629.002.jpg ADDED
images/PMC2729255_CRM2009-257136.005.jpg ADDED
images/PMC2729301_1758-2555-1-15-1.jpg ADDED
images/PMC2729450_CRM2009-653741.002.jpg ADDED
images/PMC2729892_jkms-21-690-g002.jpg ADDED
images/PMC2730620_ymj-50-560-g002.jpg ADDED
images/PMC2733215_ci07901308.jpg ADDED
images/PMC2736945_1749-8090-4-44-1.jpg ADDED
images/PMC2737797_1752-1947-0003-0000007412-1.jpg ADDED
images/PMC2739499_IJO-43-6-g001.jpg ADDED
images/PMC2739847_1749-7922-4-32-5.jpg ADDED
images/PMC2740009_1757-1626-0002-0000007083-002.jpg ADDED
images/PMC2740028_1757-1626-0002-0000007346-004.jpg ADDED
images/PMC2740042_1757-1626-0002-0000007991-003.jpg ADDED
images/PMC2740073_1757-1626-0002-0000007970-001.jpg ADDED
images/PMC2740093_1757-1626-0002-0000006729-004.jpg ADDED
images/PMC2740093_1757-1626-0002-0000006729-005.jpg ADDED
images/PMC2740094_1757-1626-0002-0000006967-002.jpg ADDED
images/PMC2740094_1757-1626-0002-0000006967-006.jpg ADDED
images/PMC2740104_1757-1626-0002-0000006771-003.jpg ADDED
images/PMC2740105_1757-1626-0002-0000006351-004.jpg ADDED
images/PMC2740135_1757-1626-0002-0000007965-001.jpg ADDED
images/PMC2740178_1757-1626-0002-0000007148-003.jpg ADDED
images/PMC2740186_1757-1626-0002-0000007776-002.jpg ADDED
images/PMC2740188_1757-1626-0002-0000007743-002.jpg ADDED
images/PMC2740232_1757-1626-0002-0000008474-003.jpg ADDED
images/PMC2740240_1757-1626-0002-0000006866-004.jpg ADDED
images/PMC2740240_1757-1626-0002-0000006866-006.jpg ADDED
images/PMC2740260_1757-1626-0002-0000007299-003.jpg ADDED
images/PMC2740276_1757-1626-0002-0000007472-002.jpg ADDED
images/PMC2740277_1757-1626-0002-0000006963-001.jpg ADDED
images/PMC2740289_1757-1626-0002-0000006174-002.jpg ADDED