Spaces:
Build error
Build error
updated more styles
Browse files
app.py
CHANGED
@@ -215,12 +215,11 @@ def detect(img):
|
|
215 |
return [Image.fromarray(im0[:, :, ::-1]), s]
|
216 |
|
217 |
|
218 |
-
css_code = ".border
|
219 |
gr.Interface(
|
220 |
fn=detect,
|
221 |
title="Anything Counter",
|
222 |
inputs=gr.Image(type="pil"),
|
223 |
-
outputs=[gr.Image(label="detection", type="pil"), gr.Textbox(label="count")],
|
224 |
-
allow_flagging="manual",
|
225 |
css=css_code,
|
226 |
).launch(debug=True)
|
|
|
215 |
return [Image.fromarray(im0[:, :, ::-1]), s]
|
216 |
|
217 |
|
218 |
+
css_code = ".border{border-width: 0;}.gr-button-primary{--tw-gradient-stops: rgb(11 143 235 / 70%), rgb(192 53 208 / 80%);color:black;border-color:black;}.gr-button-secondary{color:black;border-color:black;}.gr-panel{background-color: white;}.gr-text-input{border-width: 0;padding: 0;font-size: 18px;color: black;margin-top: 12px;}"
|
219 |
gr.Interface(
|
220 |
fn=detect,
|
221 |
title="Anything Counter",
|
222 |
inputs=gr.Image(type="pil"),
|
223 |
+
outputs=[gr.Image(label="detection", type="pil"), gr.Textbox(label="count:")],
|
|
|
224 |
css=css_code,
|
225 |
).launch(debug=True)
|