Spaces:
Runtime error
Runtime error
Commit
·
b5fa8d2
1
Parent(s):
926b4bc
Update app.py
Browse filesupdate styling of buttons and footer
app.py
CHANGED
@@ -19,6 +19,55 @@ image = gr.inputs.Image(shape=(192,192),source='webcam')
|
|
19 |
label = gr.outputs.Label()
|
20 |
#examples = ['beyonce-ok.jpg','dalai-lama-one.jpg']
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
|
|
|
|
24 |
intf.launch(inline=False)
|
|
|
19 |
label = gr.outputs.Label()
|
20 |
#examples = ['beyonce-ok.jpg','dalai-lama-one.jpg']
|
21 |
|
22 |
+
css = """
|
23 |
+
footer {display:none !important}
|
24 |
+
.output-markdown{display:none !important}
|
25 |
+
.gr-button-primary {
|
26 |
+
z-index: 14;
|
27 |
+
height: 43px;
|
28 |
+
width: 130px;
|
29 |
+
left: 0px;
|
30 |
+
top: 0px;
|
31 |
+
padding: 0px;
|
32 |
+
cursor: pointer !important;
|
33 |
+
background: none rgb(17, 20, 45) !important;
|
34 |
+
border: none !important;
|
35 |
+
text-align: center !important;
|
36 |
+
font-family: Poppins !important;
|
37 |
+
font-size: 14px !important;
|
38 |
+
font-weight: 500 !important;
|
39 |
+
color: rgb(255, 255, 255) !important;
|
40 |
+
line-height: 1 !important;
|
41 |
+
border-radius: 12px !important;
|
42 |
+
transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
|
43 |
+
box-shadow: none !important;
|
44 |
+
}
|
45 |
+
.gr-button-primary:hover{
|
46 |
+
z-index: 14;
|
47 |
+
height: 43px;
|
48 |
+
width: 130px;
|
49 |
+
left: 0px;
|
50 |
+
top: 0px;
|
51 |
+
padding: 0px;
|
52 |
+
cursor: pointer !important;
|
53 |
+
background: none rgb(37, 56, 133) !important;
|
54 |
+
border: none !important;
|
55 |
+
text-align: center !important;
|
56 |
+
font-family: Poppins !important;
|
57 |
+
font-size: 14px !important;
|
58 |
+
font-weight: 500 !important;
|
59 |
+
color: rgb(255, 255, 255) !important;
|
60 |
+
line-height: 1 !important;
|
61 |
+
border-radius: 12px !important;
|
62 |
+
transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
|
63 |
+
box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
|
64 |
+
}
|
65 |
+
.hover\:bg-orange-50:hover {
|
66 |
+
--tw-bg-opacity: 1 !important;
|
67 |
+
background-color: rgb(229,225,255) !important;
|
68 |
+
}
|
69 |
|
70 |
+
"""
|
71 |
+
|
72 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, title="Handpose | Datascience Dojo", css=css)
|
73 |
intf.launch(inline=False)
|