Sa-m's picture
Update app.py
81d0025
raw
history blame
440 Bytes
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)