Yaron Koresh commited on
Commit
6511739
·
verified ·
1 Parent(s): 9c18f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1255,7 +1255,7 @@ def handle_generation(h,w,d):
1255
  toks_len = get_tensor_length(tokenizer.encode( d, return_tensors="pt", truncation=False))
1256
  if toks_len > 500:
1257
  difficulty_points + 2
1258
- else if toks_len > 50:
1259
  difficulty_points + 1
1260
 
1261
  pxs = h*w
 
1255
  toks_len = get_tensor_length(tokenizer.encode( d, return_tensors="pt", truncation=False))
1256
  if toks_len > 500:
1257
  difficulty_points + 2
1258
+ elif toks_len > 50:
1259
  difficulty_points + 1
1260
 
1261
  pxs = h*w