Spaces:
Runtime error
Runtime error
sayanbanerjee32
commited on
Commit
•
10861ba
1
Parent(s):
3742d38
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ regex_pat = data_dict['regex_pat']
|
|
21 |
|
22 |
def encode_decode(text):
|
23 |
ids = encode(text, regex_pat, merges)
|
24 |
-
return ' '.join([str(i) for i in ids]), decode(ids, vocab), [(str(i),decode([i], vocab)) for i in ids]
|
25 |
|
26 |
|
27 |
with gr.Blocks() as demo:
|
|
|
21 |
|
22 |
def encode_decode(text):
|
23 |
ids = encode(text, regex_pat, merges)
|
24 |
+
return ', '.join([str(i) for i in ids]), decode(ids, vocab), [(str(i),decode([i], vocab)) for i in ids]
|
25 |
|
26 |
|
27 |
with gr.Blocks() as demo:
|