Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,6 @@ os.system('git clone https://github.com/WongKinYiu/yolov7')
|
|
20 |
|
21 |
|
22 |
def Custom_detect(img):
|
23 |
-
#if model =='Yolo_v7_Custom_model':
|
24 |
model='best'
|
25 |
parser = argparse.ArgumentParser()
|
26 |
parser.add_argument('--weights', nargs='+', type=str, default=model+".pt", help='model.pt path(s)')
|
@@ -154,7 +153,7 @@ def Custom_detect(img):
|
|
154 |
|
155 |
return Image.fromarray(im0[:,:,::-1])
|
156 |
inp = gr.Image(type="pil")
|
157 |
-
output = gr.Image(type="pil").style(full_width=True, height=
|
158 |
#gr.outputs.Image(type="filepath", label="Output")
|
159 |
#.outputs.Textbox() ,api_mode=True
|
160 |
|
|
|
20 |
|
21 |
|
22 |
def Custom_detect(img):
|
|
|
23 |
model='best'
|
24 |
parser = argparse.ArgumentParser()
|
25 |
parser.add_argument('--weights', nargs='+', type=str, default=model+".pt", help='model.pt path(s)')
|
|
|
153 |
|
154 |
return Image.fromarray(im0[:,:,::-1])
|
155 |
inp = gr.Image(type="pil")
|
156 |
+
output = gr.Image(type="pil").style(full_width=True, height=10)
|
157 |
#gr.outputs.Image(type="filepath", label="Output")
|
158 |
#.outputs.Textbox() ,api_mode=True
|
159 |
|