HamzaFarhan commited on
Commit
bee695e
·
1 Parent(s): 3ec18c1
Files changed (2) hide show
  1. app.ipynb +1 -1
  2. app.py +1 -1
app.ipynb CHANGED
@@ -81,7 +81,7 @@
81
  "imgs = get_image_files('imgs')\n",
82
  "examples = [[imgs[0], 0, 0, 0.4, 0.225],[imgs[1], 0, 0.8, 0.225, 0.5]]\n",
83
  "iface = gr.Interface(fn=predict, title='DreamAI Object Detection',\n",
84
- " description='Use dreamai to detect all obstacles in a certain area of an image.',\n",
85
  " outputs=gr.Image(type=\"numpy\"), examples=examples,\n",
86
  " inputs=[gr.Image(type=\"numpy\"),\n",
87
  " gr.Slider(0, 1., 0.5, step=0.025, label='Box Top X (Relative)'),\n",
 
81
  "imgs = get_image_files('imgs')\n",
82
  "examples = [[imgs[0], 0, 0, 0.4, 0.225],[imgs[1], 0, 0.8, 0.225, 0.5]]\n",
83
  "iface = gr.Interface(fn=predict, title='DreamAI Object Detection',\n",
84
+ " description='Use dreamai with yolov5 to detect all obstacles in a certain area of an image.',\n",
85
  " outputs=gr.Image(type=\"numpy\"), examples=examples,\n",
86
  " inputs=[gr.Image(type=\"numpy\"),\n",
87
  " gr.Slider(0, 1., 0.5, step=0.025, label='Box Top X (Relative)'),\n",
app.py CHANGED
@@ -21,7 +21,7 @@ def predict(img, box_x=0, box_y=0, box_w=0.5, box_h=0.5, color='red'):
21
  imgs = get_image_files('imgs')
22
  examples = [[imgs[0], 0, 0, 0.4, 0.225],[imgs[1], 0, 0.8, 0.225, 0.5]]
23
  iface = gr.Interface(fn=predict, title='DreamAI Object Detection',
24
- description='Use dreamai to detect all obstacles in a certain area of an image.',
25
  outputs=gr.Image(type="numpy"), examples=examples,
26
  inputs=[gr.Image(type="numpy"),
27
  gr.Slider(0, 1., 0.5, step=0.025, label='Box Top X (Relative)'),
 
21
  imgs = get_image_files('imgs')
22
  examples = [[imgs[0], 0, 0, 0.4, 0.225],[imgs[1], 0, 0.8, 0.225, 0.5]]
23
  iface = gr.Interface(fn=predict, title='DreamAI Object Detection',
24
+ description='Use dreamai with yolov5 to detect all obstacles in a certain area of an image.',
25
  outputs=gr.Image(type="numpy"), examples=examples,
26
  inputs=[gr.Image(type="numpy"),
27
  gr.Slider(0, 1., 0.5, step=0.025, label='Box Top X (Relative)'),