Spaces:
Running
Running
relocate logging dataset
Browse files
app.py
CHANGED
@@ -3,16 +3,17 @@ import os
|
|
3 |
import gradio
|
4 |
import sign_language_translator as slt
|
5 |
|
6 |
-
description = """Enter your text and select languages from the dropdowns, then click Submit to generate a video. [`Repository`](https://github.com/sign-language-translator/sign-language-translator)
|
7 |
|
8 |
-
The text is preprocessed, tokenized and rearranged and then each token is mapped to a prerecorded video which are concatenated and returned. [`
|
9 |
|
10 |
> NOTE: This model only supports a fixed vocabulary. See the [`*-dictionary-mapping.json`](https://github.com/sign-language-translator/sign-language-datasets/tree/main/parallel_texts) files for supported words."""
|
11 |
|
12 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
13 |
hf_writer = (
|
14 |
gradio.HuggingFaceDatasetSaver(
|
15 |
-
HF_TOKEN,
|
|
|
16 |
)
|
17 |
if HF_TOKEN
|
18 |
else None
|
|
|
3 |
import gradio
|
4 |
import sign_language_translator as slt
|
5 |
|
6 |
+
description = """Enter your text and select languages from the dropdowns, then click Submit to generate a video. [`Library Repository`](https://github.com/sign-language-translator/sign-language-translator)
|
7 |
|
8 |
+
The text is preprocessed, tokenized and rearranged and then each token is mapped to a prerecorded video which are concatenated and returned. [`Model Code`](https://github.com/sign-language-translator/sign-language-translator/blob/main/sign_language_translator/models/text_to_sign/concatenative_synthesis.py)
|
9 |
|
10 |
> NOTE: This model only supports a fixed vocabulary. See the [`*-dictionary-mapping.json`](https://github.com/sign-language-translator/sign-language-datasets/tree/main/parallel_texts) files for supported words."""
|
11 |
|
12 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
13 |
hf_writer = (
|
14 |
gradio.HuggingFaceDatasetSaver(
|
15 |
+
HF_TOKEN,
|
16 |
+
"sltAI/crowdsourced-text-to-sign-language-rule-based-translation-corpus",
|
17 |
)
|
18 |
if HF_TOKEN
|
19 |
else None
|