AlshimaaGamalAlsaied commited on
Commit
e42513a
1 Parent(s): 8c6eafc

update model_yolo7 and examples

Browse files
Files changed (6) hide show
  1. app.py +3 -2
  2. image.jpg +0 -0
  3. image1.jpg +0 -0
  4. image2.jpg +0 -0
  5. image3.jpg +0 -0
  6. model_yolo7 +1 -0
app.py CHANGED
@@ -43,7 +43,7 @@ inputs = [
43
  gr.inputs.Dropdown(
44
  choices=[
45
  "alshimaa/model_baseline",
46
- #"kadirnar/yolov7-tiny-v0.1",
47
  #"kadirnar/yolov7-v0.1",
48
  ],
49
  default="alshimaa/model_baseline",
@@ -57,12 +57,13 @@ inputs = [
57
  outputs = gr.outputs.Image(type="filepath", label="Output Image")
58
  title = "Smart Environmental Eye (SEE)"
59
 
60
- #examples = [['image.jpg.', 'SEE/best_baseline', 640, 0.25, 0.45], ['image.jpg', 'SEE/best_baseline', 640, 0.25, 0.45]]
61
  demo_app = gr.Interface(
62
  fn=yolov7_inference,
63
  inputs=inputs,
64
  outputs=outputs,
65
  title=title,
 
66
  cache_examples=True,
67
  theme='huggingface',
68
  )
 
43
  gr.inputs.Dropdown(
44
  choices=[
45
  "alshimaa/model_baseline",
46
+ "alshimaa/model_yolo7",
47
  #"kadirnar/yolov7-v0.1",
48
  ],
49
  default="alshimaa/model_baseline",
 
57
  outputs = gr.outputs.Image(type="filepath", label="Output Image")
58
  title = "Smart Environmental Eye (SEE)"
59
 
60
+ examples = [['image1.jpg.', 'alshimaa/model_baseline', 640, 0.25, 0.45], ['image2.jpg', 'alshimaa/model_baseline', 640, 0.25, 0.45], ['image3.jpg', 'alshimaa/model_baseline', 640, 0.25, 0.45]]
61
  demo_app = gr.Interface(
62
  fn=yolov7_inference,
63
  inputs=inputs,
64
  outputs=outputs,
65
  title=title,
66
+ examples=examples,
67
  cache_examples=True,
68
  theme='huggingface',
69
  )
image.jpg DELETED
Binary file (221 kB)
 
image1.jpg ADDED
image2.jpg ADDED
image3.jpg ADDED
model_yolo7 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit b3a8252a7e842dba08edb017ddfb928f1facd2c6