Spaces:
Build error
Build error
updated styles
Browse files
app.py
CHANGED
@@ -215,10 +215,12 @@ def detect(img):
|
|
215 |
return [Image.fromarray(im0[:, :, ::-1]), s]
|
216 |
|
217 |
|
|
|
218 |
gr.Interface(
|
219 |
fn=detect,
|
220 |
title="Anything Counter",
|
221 |
inputs=gr.Image(type="pil"),
|
222 |
outputs=[gr.Image(label="detection", type="pil"), gr.Textbox(label="count")],
|
223 |
allow_flagging="manual",
|
|
|
224 |
).launch(debug=True)
|
|
|
215 |
return [Image.fromarray(im0[:, :, ::-1]), s]
|
216 |
|
217 |
|
218 |
+
css_code = ".border,textarea{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;}"
|
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)
|