CurryMindFree commited on
Commit
8dffb24
·
verified ·
1 Parent(s): 395bd21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -83,16 +83,17 @@ def run_detection(image_path):
83
 
84
  with gr.Blocks() as demo:
85
 
86
- gr.Image(
87
- value="exap1.JPG",
88
- )
89
-
90
  iface = gr.Interface(
91
  fn=run_detection,
92
  inputs=gr.Image(type="filepath", label="Upload Image"),
93
  outputs=gr.Image(type="pil", label="Output Image"),
94
  title="<br>To see the complete code, click Files at upper right corner, in app.py<br><br>The model is adjusted to only detect car and traffic light.<br>Example output:"
95
  )
 
 
 
 
 
96
 
97
  demo.launch()
98
 
 
83
 
84
  with gr.Blocks() as demo:
85
 
 
 
 
 
86
  iface = gr.Interface(
87
  fn=run_detection,
88
  inputs=gr.Image(type="filepath", label="Upload Image"),
89
  outputs=gr.Image(type="pil", label="Output Image"),
90
  title="<br>To see the complete code, click Files at upper right corner, in app.py<br><br>The model is adjusted to only detect car and traffic light.<br>Example output:"
91
  )
92
+ gr.Image(
93
+ value="exap1.JPG",
94
+ show_label=False,
95
+ width=300
96
+ )
97
 
98
  demo.launch()
99