xzuyn commited on
Commit
0cd4c34
·
1 Parent(s): 9937e65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -15,13 +15,7 @@ def tokenize(input_text):
15
 
16
 
17
 
18
- return f"""Number of tokens.
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()