yangheng commited on
Commit
5ef72cb
1 Parent(s): 5dbe0d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -180,7 +180,7 @@ def perform_acos_inference(text, dataset):
180
 
181
 
182
  def run_demo(text, dataset, task):
183
- if len(text.split()) > 600:
184
  raise RuntimeError('Text is too long!')
185
  try:
186
  data = {
 
180
 
181
 
182
  def run_demo(text, dataset, task):
183
+ if len(text) > 3000:
184
  raise RuntimeError('Text is too long!')
185
  try:
186
  data = {