csukuangfj commited on
Commit
746b718
·
1 Parent(s): 7f24adb

update info

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -138,10 +138,11 @@ def build_html_output(s: str, style: str = "result_item_success"):
138
  def process(language: str, repo_id: str, text: str, sid: str, speed: float):
139
  MyPrint(f"Input text {len(text)}: {text}. sid: {sid}, speed: {speed}")
140
  if len(text) > 1000:
141
- info = (
142
- "To ensure this space is responsive, please use short text for testing\n"
143
- + "You can run sherpa-onnx locally to process long texts."
144
- )
 
145
  return hint_filename, build_html_output(info)
146
 
147
  sid = int(sid)
 
138
  def process(language: str, repo_id: str, text: str, sid: str, speed: float):
139
  MyPrint(f"Input text {len(text)}: {text}. sid: {sid}, speed: {speed}")
140
  if len(text) > 1000:
141
+ info = """
142
+ To ensure this space is responsive, please use short text for testing.<br/>
143
+ You can run this space locally to process long texts.<br>
144
+ See also https://k2-fsa.github.io/sherpa/onnx/
145
+ """
146
  return hint_filename, build_html_output(info)
147
 
148
  sid = int(sid)