Dricz commited on
Commit
7155dba
·
verified ·
1 Parent(s): 7ce1907

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -92,12 +92,10 @@ outputs = [gr.Image( type="pil", label="Output Image"),
92
  gr.Textbox(label="Result")
93
  ]
94
 
95
- # examples = [[os.path.join(image_directory, "th (5).jpg"),640, 0.3, 0.6],
96
- # [os.path.join(image_directory, "th (8).jpg"),640, 0.3, 0.6],
97
- # [os.path.join(image_directory, "th (11).jpg"),640, 0.3, 0.6],
98
- # [os.path.join(image_directory, "th (3).jpg"),640, 0.3, 0.6],
99
- # [os.path.join(image_directory, "th.jpg"),640, 0.3, 0.6]
100
- # ]
101
  title = """Corn Deseases Detection Finetuned YOLOv8
102
  <br></br>
103
  <a href="https://colab.research.google.com/drive/1ittrxr--vJeRqJquZyNfo7dlq6xRADox?authuser=4">
@@ -143,7 +141,7 @@ video_iface = gr.Interface(
143
 
144
 
145
  image_iface = gr.Interface(fn=response2, inputs=inputs, outputs=outputs,
146
- # examples=examples
147
  title=title, description=description)
148
 
149
  demo = gr.TabbedInterface([image_iface, video_iface], ["Image Inference", "Video Inference"])
 
92
  gr.Textbox(label="Result")
93
  ]
94
 
95
+ examples = [[os.path.join(image_directory, "jagung.jpeg"),640, 0.3, 0.6],
96
+ [os.path.join(image_directory, "jagung4.jpeg"),640, 0.3, 0.6],
97
+ [os.path.join(image_directory, "jagung6.jpeg"),640, 0.3, 0.6],
98
+ ]
 
 
99
  title = """Corn Deseases Detection Finetuned YOLOv8
100
  <br></br>
101
  <a href="https://colab.research.google.com/drive/1ittrxr--vJeRqJquZyNfo7dlq6xRADox?authuser=4">
 
141
 
142
 
143
  image_iface = gr.Interface(fn=response2, inputs=inputs, outputs=outputs,
144
+ examples=examples
145
  title=title, description=description)
146
 
147
  demo = gr.TabbedInterface([image_iface, video_iface], ["Image Inference", "Video Inference"])