xmrt commited on
Commit
aa8cc91
·
1 Parent(s): e3d0d39
Files changed (1) hide show
  1. app.py +0 -25
app.py CHANGED
@@ -58,31 +58,6 @@ description = """
58
  To use it, simply upload an image and enter comma separated text descriptions of objects you want to query the image for. You
59
  can also use the score threshold slider to set a threshold to filter out low probability predictions.
60
  """
61
- upload = gr.Interface(
62
- query_image,
63
- inputs=[gr.Image(source="upload"),
64
- "text",
65
- gr.Slider(0, 1, value=0.1)],
66
- outputs="image",
67
- title="Zero-Shot Object Detection with OWL-ViT",
68
- description=description,
69
- examples=[os.path.join("examples","IMGP0178.jpg")])
70
-
71
- web = gr.Interface(
72
- query_image,
73
- inputs=[gr.Image(source="webcam"),
74
- "text",
75
- gr.Slider(0, 1, value=0.1)],
76
- outputs="image",
77
- title="Zero-Shot Object Detection with OWL-ViT",
78
- description=description,
79
- examples="./examples/IMGP0178.jpg")
80
-
81
- demo = gr.TabbedInterface(interface_list=[upload, web],
82
- tab_names=["From a File", "From your Webcam"])
83
-
84
- demo.launch()
85
-
86
 
87
  with gr.Blocks() as demo:
88
  with gr.Column():
 
58
  To use it, simply upload an image and enter comma separated text descriptions of objects you want to query the image for. You
59
  can also use the score threshold slider to set a threshold to filter out low probability predictions.
60
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  with gr.Blocks() as demo:
63
  with gr.Column():