mrfakename commited on
Commit
9d108ee
1 Parent(s): 860bd89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -445,7 +445,7 @@ def synthandreturn(text):
445
  text = text.strip()
446
  if len(text) > MAX_SAMPLE_TXT_LENGTH:
447
  raise gr.Error(f'You exceeded the limit of {MAX_SAMPLE_TXT_LENGTH} characters')
448
- if len(text) < MAX_SAMPLE_TXT_LENGTH:
449
  raise gr.Error(f'You did not enter enough text!')
450
  if not text:
451
  raise gr.Error(f'You did not enter any text')
 
445
  text = text.strip()
446
  if len(text) > MAX_SAMPLE_TXT_LENGTH:
447
  raise gr.Error(f'You exceeded the limit of {MAX_SAMPLE_TXT_LENGTH} characters')
448
+ if len(text) < MIN_SAMPLE_TXT_LENGTH:
449
  raise gr.Error(f'You did not enter enough text!')
450
  if not text:
451
  raise gr.Error(f'You did not enter any text')