frappierer commited on
Commit
5b1fc2e
·
verified ·
1 Parent(s): 4caaa5b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -3
README.md CHANGED
@@ -1,3 +1,62 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - medical
5
+ ---
6
+ # Simple Web UI for MedImageInsight: Open-Source Medical Image Embedding Model
7
+
8
+ This repository is a clone of [Lion AI MedImageInsights](https://huggingface.co/lion-ai/MedImageInsights) and shows how easily you can create a simple Web UI for the Model.
9
+
10
+ ## Known Issues
11
+ In the UI, selecting a URL does not always work due to CORS issues. Take local images to be save
12
+
13
+ ## Screenshot
14
+
15
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/656dc73c3e60cb2621f11623/plsq_BbyMkN2wipISKQ0A.png)
16
+
17
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/656dc73c3e60cb2621f11623/0odpBtCuXaLJE_zRBqBQA.png)
18
+
19
+ ## General
20
+
21
+ Check out [Lion AI MedImageInsights](https://huggingface.co/lion-ai/MedImageInsights) for further details.
22
+
23
+
24
+ ## Usage
25
+
26
+ 1. Clone the repository and navigate to the project directory.
27
+
28
+ Make sure you have git-lfs installed (https://git-lfs.com)
29
+ ```bash
30
+ git lfs install
31
+ ```
32
+
33
+ ```bash
34
+ git clone https://huggingface.co/xxxx
35
+ ```
36
+ 3. Install the required dependencies
37
+ We are using [uv](https://github.com/astral-sh/uv) package manager to simplify the installation.
38
+
39
+ 4. Run Fast API Server (My Simple Web UI will query against that server)
40
+
41
+ FYI:I had to add a CORS middleware to the API Server, so API request from localhost dont get blocked.
42
+ ```bash
43
+ uv run fastapi_app.py
44
+ ```
45
+ Optionally: Go to localhost:8000/docs to see the swagger.
46
+
47
+ Run the index.html in the folder and have fun.
48
+
49
+ ## Extend Labels
50
+ To Show more labels in the UI just edit the labels in script.js
51
+ // Define your labels
52
+ ```bash
53
+ const medicalLabels = [
54
+ 'Tumor',
55
+ 'Normal',
56
+ 'Pneumonia',
57
+ 'Fracture',
58
+ 'Edema',
59
+ 'Effusion',
60
+ // Add as many labels as you need
61
+ ];
62
+ ```