datasciencedojo commited on
Commit
6fcd558
·
1 Parent(s): 5d15e03

updated css

Browse files
Files changed (1) hide show
  1. app.py +47 -1
app.py CHANGED
@@ -96,7 +96,53 @@ def sign(img):
96
  def set_example_image(example: list) -> dict:
97
  return gr.inputs.Image.update(value=example[0])
98
 
99
- with gr.Blocks(title="American Sign Language Detection | Data Science Dojo", css="footer {display:none !important} .output-markdown{display:none !important} #out_image {height: 22rem !important;}") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  with gr.Tabs():
102
  with gr.TabItem('Upload'):
 
96
  def set_example_image(example: list) -> dict:
97
  return gr.inputs.Image.update(value=example[0])
98
 
99
+
100
+ css = """
101
+ .gr-button-lg {
102
+ z-index: 14;
103
+ width: 113px;
104
+ height: 30px;
105
+ left: 0px;
106
+ top: 0px;
107
+ padding: 0px;
108
+ cursor: pointer !important;
109
+ background: none rgb(17, 20, 45) !important;
110
+ border: none !important;
111
+ text-align: center !important;
112
+ font-size: 14px !important;
113
+ font-weight: 500 !important;
114
+ color: rgb(255, 255, 255) !important;
115
+ line-height: 1 !important;
116
+ border-radius: 6px !important;
117
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
118
+ box-shadow: none !important;
119
+ }
120
+ .gr-button-lg:hover{
121
+ z-index: 14;
122
+ width: 113px;
123
+ height: 30px;
124
+ left: 0px;
125
+ top: 0px;
126
+ padding: 0px;
127
+ cursor: pointer !important;
128
+ background: none rgb(37, 56, 133) !important;
129
+ border: none !important;
130
+ text-align: center !important;
131
+ font-size: 14px !important;
132
+ font-weight: 500 !important;
133
+ color: rgb(255, 255, 255) !important;
134
+ line-height: 1 !important;
135
+ border-radius: 6px !important;
136
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
137
+ box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
138
+ }
139
+
140
+ footer {display:none !important}
141
+ .output-markdown{display:none !important}
142
+ #out_image {height: 22rem !important;}
143
+ """
144
+
145
+ with gr.Blocks(title="American Sign Language Detection | Data Science Dojo", css=css) as demo:
146
 
147
  with gr.Tabs():
148
  with gr.TabItem('Upload'):