Spaces:
Build error
Build error
Matyáš Boháček
commited on
Commit
•
ad6702d
1
Parent(s):
25cbc9c
Temp
Browse files
app.py
CHANGED
@@ -109,8 +109,32 @@ def greet(label, video0, video1):
|
|
109 |
label = gr.outputs.Label(num_top_classes=3, label="Top class probabilities")
|
110 |
demo = gr.Interface(fn=greet, inputs=[gr.Dropdown(["Webcam", "Video"], label="Please select the input type:", type="value"), gr.Video(source="webcam", label="Webcam recording", type="mp4"), gr.Video(source="upload", label="Video upload", type="mp4")], outputs=label,
|
111 |
title="SPOTER Sign language recognition",
|
112 |
-
description=""
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
css="""
|
115 |
@font-face {
|
116 |
font-family: Graphik;
|
@@ -169,6 +193,28 @@ demo = gr.Interface(fn=greet, inputs=[gr.Dropdown(["Webcam", "Video"], label="Pl
|
|
169 |
border: 0 !important;
|
170 |
border-color: 0 !important;
|
171 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
""",
|
173 |
cache_examples=True
|
174 |
)
|
|
|
109 |
label = gr.outputs.Label(num_top_classes=3, label="Top class probabilities")
|
110 |
demo = gr.Interface(fn=greet, inputs=[gr.Dropdown(["Webcam", "Video"], label="Please select the input type:", type="value"), gr.Video(source="webcam", label="Webcam recording", type="mp4"), gr.Video(source="upload", label="Video upload", type="mp4")], outputs=label,
|
111 |
title="SPOTER Sign language recognition",
|
112 |
+
description="""
|
113 |
+
<details>
|
114 |
+
<summary style="font-family: MonumentExpanded; color: rgb(218, 221, 216); font-size: 1em !important;" class="unselectable">
|
115 |
+
Instructions
|
116 |
+
</summary>
|
117 |
+
<ol>
|
118 |
+
<li> upload video in question
|
119 |
+
<ul>
|
120 |
+
<li> interview- or speech-style with only one person visible and no video cuts
|
121 |
+
<li> between thirty seconds and three minutes in length
|
122 |
+
</ul>
|
123 |
+
<li> click "Submit"
|
124 |
+
<li> if server is busy, your video will be queued up
|
125 |
+
<li> results will appear in "Results" panel and will be sent to your e-mail
|
126 |
+
<li> if you believe that our analysis is incorrect, you can "Flag" the video and we will review for accuracy
|
127 |
+
<li> see M. Boháček and H. Farid. Protecting President Zelenskyy against Deep Fakes, arXiv:2206.12043, 2022 [<a href="https://arxiv.org/abs/2206.12043#">preprint</a>]
|
128 |
+
</ol>
|
129 |
+
</details>
|
130 |
+
<details>
|
131 |
+
<summary style="font-family: MonumentExpanded; color: rgb(218, 221, 216); font-size: 1em !important;" class="unselectable">
|
132 |
+
Privacy
|
133 |
+
</summary>
|
134 |
+
We do not collect any user information. The videos are deleted from our servers after the analysis is completed, unless you directly flag them for inspection.
|
135 |
+
</details>
|
136 |
+
""",
|
137 |
+
article="",
|
138 |
css="""
|
139 |
@font-face {
|
140 |
font-family: Graphik;
|
|
|
193 |
border: 0 !important;
|
194 |
border-color: 0 !important;
|
195 |
}
|
196 |
+
|
197 |
+
.gr-prose li {
|
198 |
+
margin-top: 0 !important;
|
199 |
+
margin-bottom: 0 !important;
|
200 |
+
}
|
201 |
+
|
202 |
+
.gr-prose ol ol, .gr-prose ol ul, .gr-prose ul ol, .gr-prose ul ul {
|
203 |
+
margin-top: 0 !important;
|
204 |
+
margin-bottom: 0 !important;
|
205 |
+
}
|
206 |
+
|
207 |
+
.gr-prose h1 {
|
208 |
+
font-size: 1.75em !important;
|
209 |
+
text-align: left !important;
|
210 |
+
}
|
211 |
+
|
212 |
+
.unselectable {
|
213 |
+
-webkit-user-select: none;
|
214 |
+
-moz-user-select: none;
|
215 |
+
-ms-user-select: none;
|
216 |
+
user-select: none;
|
217 |
+
}
|
218 |
""",
|
219 |
cache_examples=True
|
220 |
)
|