Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -86,15 +86,14 @@ article = '<p>Detectron model is available from our repository <a href="https://
|
|
86 |
|
87 |
|
88 |
with gr.Blocks(title=title,
|
89 |
-
|
90 |
-
article=article
|
91 |
) as demo:
|
92 |
|
93 |
-
|
94 |
#
|
95 |
-
|
96 |
#
|
97 |
-
|
98 |
|
99 |
with gr.Row():
|
100 |
input_url = gr.Textbox(label="Image URL", placeholder="")
|
@@ -111,8 +110,8 @@ with gr.Blocks(title=title,
|
|
111 |
|
112 |
gr.Examples(['./d1.jpeg', './d2.jpeg', './d3.jpeg','./d4.jpeg','./d5.jpeg','./d6.jpeg'], inputs=input_image)
|
113 |
|
114 |
-
|
115 |
-
|
116 |
|
117 |
send_btn = gr.Button("Submit")
|
118 |
send_btn.click(fn=inference, inputs=[input_url,input_image,gr.Slider(minimum=0.0, maximum=1.0, value=0.4, label="Minimum score")], outputs=[output_image])
|
|
|
86 |
|
87 |
|
88 |
with gr.Blocks(title=title,
|
89 |
+
css=".gradio-container {background:white;}"
|
|
|
90 |
) as demo:
|
91 |
|
92 |
+
gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">"Smartathon Phase2 Demo - Baseer"</div>""")
|
93 |
#
|
94 |
+
gr.HTML("""<h4 style="color:navy;">1- Select an example by clicking a thumbnail below.</h4>""")
|
95 |
#
|
96 |
+
gr.HTML("""<h4 style="color:navy;">2- Or upload an image by clicking on the canvas.</h4>""")
|
97 |
|
98 |
with gr.Row():
|
99 |
input_url = gr.Textbox(label="Image URL", placeholder="")
|
|
|
110 |
|
111 |
gr.Examples(['./d1.jpeg', './d2.jpeg', './d3.jpeg','./d4.jpeg','./d5.jpeg','./d6.jpeg'], inputs=input_image)
|
112 |
|
113 |
+
gr.HTML("""<br/>""")
|
114 |
+
gr.HTML("""<h4 style="color:navy;">3- Then, click "Submit" button to predict object instances. It will take about 15-20 seconds (on cpu)</h4>""")
|
115 |
|
116 |
send_btn = gr.Button("Submit")
|
117 |
send_btn.click(fn=inference, inputs=[input_url,input_image,gr.Slider(minimum=0.0, maximum=1.0, value=0.4, label="Minimum score")], outputs=[output_image])
|