fmajer commited on
Commit
f13be7b
·
1 Parent(s): 99115dd

examples changed

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -104,19 +104,12 @@ demo = gr.Interface(
104
  #inputs=[gr.Image(type='numpy', label='input_img').style(height=250, width=600), "text", "checkbox", gr.Slider(0, 1, value=0.25),
105
  # gr.Radio(["center", "squash", "border"], value='center', label='crop_mode'), gr.Slider(0.7, 1, value=0.9, step=0.01)],
106
  inputs=["image", "text", "checkbox", gr.Slider(0, 1, value=0.25),
107
- gr.Radio(["center", "squash", "border"], value='center', label='crop_mode'), gr.Slider(0.7, 1, value=0.9, step=0.01)],
108
  outputs="image",
109
  #outputs=gr.Image(type='numpy', label='output').style(height=600, width=600),
110
  title="Text-Based Object Detection",
111
  description=description,
112
- examples=[
113
- ["examples/img1.jpeg", "Find a person.", True, 0.45],
114
- ["examples/img2.jpeg", "Could you mark a horse?", False, 0.25],
115
- ["examples/img3.jpeg", "There should be a cat in this picture, where?", True, 0.25],
116
- ["examples/img4.jpeg", "Mark a tv in this image.", False, 0.1],
117
- ["examples/img5.jpeg", "Is there a zebra in this picture?", True, 0.4],
118
- ["examples/img6.jpeg", "Look for a stop sign.", True, 0.5],
119
- ],
120
  cache_examples=False,
121
  allow_flagging = "never",
122
  css = """
 
104
  #inputs=[gr.Image(type='numpy', label='input_img').style(height=250, width=600), "text", "checkbox", gr.Slider(0, 1, value=0.25),
105
  # gr.Radio(["center", "squash", "border"], value='center', label='crop_mode'), gr.Slider(0.7, 1, value=0.9, step=0.01)],
106
  inputs=["image", "text", "checkbox", gr.Slider(0, 1, value=0.25),
107
+ gr.Radio(["center", "squash", "border"], value='squash', label='crop_mode'), gr.Slider(0.7, 1, value=1, step=0.01)],
108
  outputs="image",
109
  #outputs=gr.Image(type='numpy', label='output').style(height=600, width=600),
110
  title="Text-Based Object Detection",
111
  description=description,
112
+
 
 
 
 
 
 
 
113
  cache_examples=False,
114
  allow_flagging = "never",
115
  css = """