Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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 |
-
|
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
|