File size: 440 Bytes
bd430c2
6eaf9f2
 
81d0025
aee6913
4765ec5
 
bd430c2
4765ec5
 
bd430c2
 
4765ec5
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import os

os.system('git clone https://github.com/WongKinYiu/yolov7.git')
os.system('pip install -qr ./yolov7/requirements.txt')
def detect(inp):
  return inp

inp = gr.inputs.Image(type="pil", label="Original Image")
output = gr.outputs.Image(type="pil", label="Output Image")


io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ',)
io.launch(debug=True,share=False)