Spaces:
Sleeping
Sleeping
chore: remove examples
Browse files
app.py
CHANGED
@@ -74,34 +74,11 @@ def translate(video_file, true_caption=None):
|
|
74 |
return {"translation":translation}
|
75 |
|
76 |
# Gradio App config
|
77 |
-
title = "
|
78 |
-
|
79 |
-
description = """
|
80 |
-
This application hosts a model for translation of American Sign Language (ASL).
|
81 |
-
The model comprises of a fine-tuned MoViNet CNN model to generate video embeddings and a T5 encoder-decoder model
|
82 |
-
to generate translations from the video embeddings. This model architecture achieves a BLEU score of 1.98
|
83 |
-
and an average cosine similarity score of 0.21 when trained and evaluated on the YouTube-ASL dataset.
|
84 |
-
More information about the model training and instructions to download the models
|
85 |
-
can be found in our <a href=https://github.com/deanna-emery/ASL-Translator>GitHub repository</a>.
|
86 |
-
You can also find an overview of the project approach
|
87 |
-
<a href=https://www.ischool.berkeley.edu/projects/2023/signsense-american-sign-language-translation>here</a>.
|
88 |
-
|
89 |
-
A limitation of this architecture is the size of the MoViNets model, making it especially slow during inference on a CPU.
|
90 |
-
We do not recommend uploading videos longer than 4 seconds as the video embedding generation may take some time.
|
91 |
-
The application does not accept videos that are longer than 10 seconds.
|
92 |
-
We have provided some pre-cached videos with their original captions and translations as examples.
|
93 |
-
"""
|
94 |
-
|
95 |
-
|
96 |
-
examples = [
|
97 |
-
["videos/My_second_ASL_professors_name_was_Will_White.mp4", "My second ASL professor's name was Will White"],
|
98 |
-
['videos/You_are_my_sunshine.mp4', 'You are my sunshine'],
|
99 |
-
['videos/scrub_your_hands_for_at_least_20_seconds.mp4', 'scrub your hands for at least 20 seconds'],
|
100 |
-
['videos/no.mp4', 'no'],
|
101 |
-
["videos/i_feel_rejuvenated_by_this_beautiful_weather.mp4","I feel rejuvenated by this beautiful weather"],
|
102 |
-
["videos/north_dakota_they_dont_need.mp4","... north dakota they don't need ..."],
|
103 |
-
]
|
104 |
|
|
|
|
|
|
|
105 |
|
106 |
# Gradio App interface
|
107 |
gr.Interface(fn=translate,
|
|
|
74 |
return {"translation":translation}
|
75 |
|
76 |
# Gradio App config
|
77 |
+
title = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
+
description = """"""
|
80 |
+
|
81 |
+
examples = []
|
82 |
|
83 |
# Gradio App interface
|
84 |
gr.Interface(fn=translate,
|