Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ unk_id = sp.piece_to_id("<unk>")
|
|
22 |
if unk_id == -1: unk_id = 3
|
23 |
|
24 |
vocab_size = sp.get_piece_size()
|
25 |
-
max_len =
|
26 |
|
27 |
def text_to_ids(text):
|
28 |
return sp.encode(text, out_type=int)
|
|
|
22 |
if unk_id == -1: unk_id = 3
|
23 |
|
24 |
vocab_size = sp.get_piece_size()
|
25 |
+
max_len = 100
|
26 |
|
27 |
def text_to_ids(text):
|
28 |
return sp.encode(text, out_type=int)
|