Matyáš Boháček commited on
Commit
d2bad0b
1 Parent(s): a6a15dd

Add new styles

Browse files
Files changed (1) hide show
  1. app.py +63 -3
app.py CHANGED
@@ -100,10 +100,70 @@ def greet(label, video0, video1):
100
  return results
101
 
102
 
103
- label = gr.outputs.Label(num_top_classes=5)
104
  demo = gr.Interface(fn=greet, inputs=[gr.Dropdown(["Webcam", "Video"], label="Please select the input type:"), gr.Video(source="webcam", label="Webcam recording"), gr.Video(label="Video upload")], outputs=label,
105
  title="SPOTER Sign language recognition",
106
- description="Lightweight and accurate sign langage recogniton right in your browser.",
107
- article="This is joint work of Matyas Bohacek and Zhuo Cao. For more info, visit [our website.](https://www.signlanguagerecognition.com)")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
  demo.launch()
 
100
  return results
101
 
102
 
103
+ label = gr.outputs.Label(num_top_classes=5, label="Top class probabilities")
104
  demo = gr.Interface(fn=greet, inputs=[gr.Dropdown(["Webcam", "Video"], label="Please select the input type:"), gr.Video(source="webcam", label="Webcam recording"), gr.Video(label="Video upload")], outputs=label,
105
  title="SPOTER Sign language recognition",
106
+ description="",
107
+ article="This is joint work of [Matyas Bohacek](https://scholar.google.cz/citations?user=wDy1xBwAAAAJ) and [Zhuo Cao](https://www.linkedin.com/in/zhuo-cao-b0787a1aa/?originalSubdomain=hk). For more info, visit [our website.](https://www.signlanguagerecognition.com)",
108
+ css="""
109
+ @font-face {
110
+ font-family: Graphik;
111
+ font-weight: regular;
112
+ src: url("https://www.signlanguagerecognition.com/supplementary/GraphikRegular.otf") format("opentype");
113
+ }
114
+
115
+ @font-face {
116
+ font-family: Graphik;
117
+ font-weight: bold;
118
+ src: url("https://www.signlanguagerecognition.com/supplementary/GraphikBold.otf") format("opentype");
119
+ }
120
+
121
+ @font-face {
122
+ font-family: MonumentExpanded;
123
+ font-weight: regular;
124
+ src: url("https://www.signlanguagerecognition.com/supplementary/MonumentExtended-Regular.otf") format("opentype");
125
+ }
126
+
127
+ @font-face {
128
+ font-family: MonumentExpanded;
129
+ font-weight: bold;
130
+ src: url("https://www.signlanguagerecognition.com/supplementary/MonumentExtended-Bold.otf") format("opentype");
131
+ }
132
+
133
+ html {
134
+ font-family: "Graphik";
135
+ }
136
+
137
+ h1 {
138
+ font-family: "MonumentExpanded";
139
+ }
140
+
141
+ #12 {
142
+ - background-image: linear-gradient(to left, #61D836, #6CB346) !important;
143
+ background-color: #61D836 !important;
144
+ }
145
+
146
+ #12:hover {
147
+ - background-image: linear-gradient(to left, #61D836, #6CB346) !important;
148
+ background-color: #6CB346 !important;
149
+ border: 0 !important;
150
+ border-color: 0 !important;
151
+ }
152
+
153
+ .dark .gr-button-primary {
154
+ --tw-gradient-from: #61D836;
155
+ --tw-gradient-to: #6CB346;
156
+ border: 0 !important;
157
+ border-color: 0 !important;
158
+ }
159
+
160
+ .dark .gr-button-primary:hover {
161
+ --tw-gradient-from: #64A642;
162
+ --tw-gradient-to: #58933B;
163
+ border: 0 !important;
164
+ border-color: 0 !important;
165
+ }
166
+ """
167
+ )
168
 
169
  demo.launch()