mdsr commited on
Commit
268bc54
·
1 Parent(s): 1577d3f

add instructions

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -10,8 +10,9 @@ DESCRIPTION = """Enter your text and select languages from the dropdowns, then c
10
 
11
  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)
12
 
13
- > 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.
14
  > This version needs to re-encode the generated video so that will take some extra time after translation.
 
15
  """.strip()
16
 
17
  TITLE = "Concatenative Synthesis: Rule Based Text to Sign Language Translator"
@@ -110,6 +111,7 @@ with gradio.Blocks(title=TITLE, head=CUSTOM_JS) as gradio_app:
110
  with gradio.Row():
111
  with gradio.Column():
112
  gradio.Markdown("## Input Text")
 
113
  with gradio.Row():
114
  with gradio.Column():
115
  source_textbox = gradio.Textbox(
 
10
 
11
  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)
12
 
13
+ > *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.
14
  > This version needs to re-encode the generated video so that will take some extra time after translation.
15
+ > Since this is a rule-based model, you will have to add *context* to ambiguous words (e.g. glass(material) vs glass(container)).
16
  """.strip()
17
 
18
  TITLE = "Concatenative Synthesis: Rule Based Text to Sign Language Translator"
 
111
  with gradio.Row():
112
  with gradio.Column():
113
  gradio.Markdown("## Input Text")
114
+ gradio.Markdown("Write here (in selected language):")
115
  with gradio.Row():
116
  with gradio.Column():
117
  source_textbox = gradio.Textbox(