Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,13 @@ import os
|
|
3 |
|
4 |
os.system('git clone https://github.com/WongKinYiu/yolov7.git')
|
5 |
|
|
|
|
|
6 |
|
|
|
|
|
7 |
|
8 |
|
|
|
|
|
|
|
|
3 |
|
4 |
os.system('git clone https://github.com/WongKinYiu/yolov7.git')
|
5 |
|
6 |
+
def detect(inp):
|
7 |
+
return inp
|
8 |
|
9 |
+
inp = gr.inputs.Image(type="pil", label="Original Image")
|
10 |
+
output = gr.outputs.Image(type="pil", label="Output Image")
|
11 |
|
12 |
|
13 |
+
io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ',)
|
14 |
+
io.launch(debug=True,share=False)
|
15 |
+
|