asalhi85 commited on
Commit
e5a63d9
1 Parent(s): 5c44d91

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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
- description=description,
90
- article=article
91
  ) as demo:
92
 
93
- # gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">Detectron2 Object Detection</div>""")
94
  #
95
- # gr.HTML("""<h4 style="color:navy;">1-a. Select an example by clicking a thumbnail below.</h4>""")
96
  #
97
- # gr.HTML("""<h4 style="color:navy;">1-b. Or upload an image by clicking on the canvas.</h4>""")
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
- # gr.HTML("""<br/>""")
115
- # gr.HTML("""<h4 style="color:navy;">2. Then, click "Infer" button to predict object instances. It will take about 15-20 seconds (on cpu)</h4>""")
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])