Spaces:
Build error
Build error
d1ef commited on
Commit ·
cd3f827
1
Parent(s): d459757
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def translate(model, action, inputs):
|
|
| 28 |
output = tokens
|
| 29 |
|
| 30 |
|
| 31 |
-
return f'{output}\n\n\n\nother infos:\nvocab_size: {vocab_size}\nlen(tokenizer): {len_tokenizer}'
|
| 32 |
|
| 33 |
demo = gr.Interface(
|
| 34 |
fn=translate,
|
|
|
|
| 28 |
output = tokens
|
| 29 |
|
| 30 |
|
| 31 |
+
return f'{output}\n\n\n\nother infos:\njson:{json.dumps(output)} \nvocab_size: {vocab_size}\nlen(tokenizer): {len_tokenizer}'
|
| 32 |
|
| 33 |
demo = gr.Interface(
|
| 34 |
fn=translate,
|