deepsync commited on
Commit
6ab928c
·
1 Parent(s): def995e

removed max text limit

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -72,12 +72,12 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
72
  None,
73
  None,
74
  )
75
- if len(prompt)>200:
76
- gr.Warning("Text length limited to 200 characters for this demo, please try shorter text")
77
- return (
78
- None,
79
- None,
80
- )
81
  global DEVICE_ASSERT_DETECTED
82
  if DEVICE_ASSERT_DETECTED:
83
  global DEVICE_ASSERT_PROMPT
 
72
  None,
73
  None,
74
  )
75
+ # if len(prompt)>200:
76
+ # gr.Warning("Text length limited to 200 characters for this demo, please try shorter text")
77
+ # return (
78
+ # None,
79
+ # None,
80
+ # )
81
  global DEVICE_ASSERT_DETECTED
82
  if DEVICE_ASSERT_DETECTED:
83
  global DEVICE_ASSERT_PROMPT