zdobariya10 commited on
Commit
1a6b034
·
verified ·
1 Parent(s): 2562dcd

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +20 -0
  2. my_model.pt +3 -0
  3. requirements.txt +3 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from ultralytics import YOLO
3
+ from PIL import Image
4
+
5
+ model = YOLO("my_model.pt")
6
+
7
+ def detect(image):
8
+ results = model(image)
9
+ plotted = results[0].plot()
10
+ return plotted
11
+
12
+ interface = gr.Interface(
13
+ fn=detect,
14
+ inputs=gr.Image(type="pil"),
15
+ outputs=gr.Image(type="numpy"),
16
+ title="FaceFixer Skin Detection",
17
+ description="Upload a face image to detect skin conditions like acne, pimples, and dark spots."
18
+ )
19
+
20
+ interface.launch()
my_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fca88deb0a8322a74508c032dba939573079d77e2ff5140db52818bafb3f8da9
3
+ size 19177107
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ ultralytics
2
+ gradio
3
+ pillow