Xanthius commited on
Commit
d8bd459
1 Parent(s): 85abeb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,5 +7,5 @@ def tokenize(input_text):
7
  tokens = sp.EncodeAsIds(input_text)
8
  return f"Number of tokens: {len(tokens)}"
9
 
10
- iface = gr.Interface(fn=tokenize, inputs="text", outputs="text")
11
  iface.launch()
 
7
  tokens = sp.EncodeAsIds(input_text)
8
  return f"Number of tokens: {len(tokens)}"
9
 
10
+ iface = gr.Interface(fn=tokenize, inputs=gr.inputs.Textbox(lines=7), outputs="text")
11
  iface.launch()