Spaces:
Running
Running
Update app.py
Browse files
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=
|
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()
|