Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,13 +15,7 @@ def tokenize(input_text):
|
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
-
return f"
|
| 19 |
-
|
| 20 |
-
GPT-2: {len(gpt2_tokens)}
|
| 21 |
-
GPT-J: {len(gptj_tokens)}
|
| 22 |
-
GPT-NeoX: {len(gpt_neox_tokens)}
|
| 23 |
-
LLaMa: {len(llama_tokens)}
|
| 24 |
-
"""
|
| 25 |
|
| 26 |
iface = gr.Interface(fn=tokenize, inputs=gr.Textbox(lines=7), outputs="text")
|
| 27 |
iface.launch()
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
+
return f"GPT-2: {len(gpt2_tokens)}\nGPT-J: {len(gptj_tokens)}\nGPT-NeoX: {len(gpt_neox_tokens)}\nLLaMa: {len(llama_tokens)}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
iface = gr.Interface(fn=tokenize, inputs=gr.Textbox(lines=7), outputs="text")
|
| 21 |
iface.launch()
|