Alain Vaucher commited on
Commit
275093a
1 Parent(s): c0e757f

Change placeholder text

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -24,6 +24,9 @@ model_type_to_models = {
24
  _ORGANIC_MODEL_TAG: ["organic-1.pt", "organic-2.pt", "organic-3.pt"],
25
  }
26
 
 
 
 
27
 
28
  @functools.lru_cache
29
  def load_model(model_type: str) -> TranslatorWithSentencePiece:
@@ -130,7 +133,7 @@ def launch() -> gr.Interface:
130
  label="Model",
131
  value=_SAC_MODEL_TAG,
132
  ),
133
- gr.Textbox(label="Synthesis text", lines=7, placeholder=examples[0][1]),
134
  gr.Checkbox(label="Show sentences in the output"),
135
  ],
136
  outputs=gr.HTML(label="Output"),
 
24
  _ORGANIC_MODEL_TAG: ["organic-1.pt", "organic-2.pt", "organic-3.pt"],
25
  }
26
 
27
+ SYNTHESIS_TEXT_PLACEHOLDER = (
28
+ "Enter the synthesis procedure here, or click on one of the examples below."
29
+ )
30
 
31
  @functools.lru_cache
32
  def load_model(model_type: str) -> TranslatorWithSentencePiece:
 
133
  label="Model",
134
  value=_SAC_MODEL_TAG,
135
  ),
136
+ gr.Textbox(label="Synthesis text", lines=7, placeholder=SYNTHESIS_TEXT_PLACEHOLDER),
137
  gr.Checkbox(label="Show sentences in the output"),
138
  ],
139
  outputs=gr.HTML(label="Output"),