mrfakename commited on
Commit
b72e390
1 Parent(s): 9952550

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,7 +137,7 @@ INSTR = """
137
  * Listen to the two audio clips.
138
  * Vote on which synthesized audio sounds more natural to you. **Did the model hallucinate?**
139
 
140
- **When you're ready to begin, enter text!** The model names will be revealed once you vote.
141
  """.strip()
142
  request = ''
143
  if SPACE_ID:
@@ -482,7 +482,7 @@ def synthandreturn(text):
482
  if len(text) < MIN_SAMPLE_TXT_LENGTH:
483
  raise gr.Error(f'Not enough text')
484
  if (toxicity.predict(text)['toxicity'] > 0.5):
485
- raise gr.Error('Your text failed the toxicity test!')
486
  if not text:
487
  raise gr.Error(f'You did not enter any text')
488
  # Get two random models
 
137
  * Listen to the two audio clips.
138
  * Vote on which synthesized audio sounds more natural to you. **Did the model hallucinate?**
139
 
140
+ **When you're ready to begin, enter text.** Model names will be revealed once you vote.
141
  """.strip()
142
  request = ''
143
  if SPACE_ID:
 
482
  if len(text) < MIN_SAMPLE_TXT_LENGTH:
483
  raise gr.Error(f'Not enough text')
484
  if (toxicity.predict(text)['toxicity'] > 0.5):
485
+ raise gr.Error('Your text failed the toxicity test')
486
  if not text:
487
  raise gr.Error(f'You did not enter any text')
488
  # Get two random models