mrisdi commited on
Commit
428f20d
·
1 Parent(s): e78e1d7
Files changed (2) hide show
  1. app.py +2 -2
  2. best.pt +3 -0
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from ultralytics import YOLO
3
  import speech_recognition as sr
4
 
5
- model = YOLO('yolo11n-pose.pt')
6
 
7
  def proses_image(image):
8
  results = model(image)
@@ -34,7 +34,7 @@ with gr.Blocks() as demo:
34
  with gr.Row(visible=True) as gambar:
35
  gr.Interface(
36
  fn=proses_image,
37
- inputs=gr.Image(streaming=True),
38
  outputs=gr.Image(),
39
  live=True
40
  )
 
2
  from ultralytics import YOLO
3
  import speech_recognition as sr
4
 
5
+ model = YOLO('best.pt')
6
 
7
  def proses_image(image):
8
  results = model(image)
 
34
  with gr.Row(visible=True) as gambar:
35
  gr.Interface(
36
  fn=proses_image,
37
+ inputs=gr.Image(),
38
  outputs=gr.Image(),
39
  live=True
40
  )
best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c6d1c4eef7f0f0f95941dc5cded6798ef363d0cff00d87b2b523299ff5f69db
3
+ size 6413953