Spaces:
Build error
Build error
Commit
Β·
4823942
1
Parent(s):
94e723b
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def search(token_to_lookup, num_neighbors=100):
|
|
28 |
iface = gr.Interface(
|
29 |
fn=search,
|
30 |
|
31 |
-
inputs=gr.Textbox(lines=1, label="Vocabulary Token", placeholder="Enter token..."),
|
32 |
outputs=gr.Textbox(label="Nearest subwords"),
|
33 |
examples=[
|
34 |
["##logy"],
|
|
|
28 |
iface = gr.Interface(
|
29 |
fn=search,
|
30 |
|
31 |
+
inputs=[gr.Textbox(lines=1, label="Vocabulary Token", placeholder="Enter token..."), gr.Number(value=50, label="number of neighbors")],
|
32 |
outputs=gr.Textbox(label="Nearest subwords"),
|
33 |
examples=[
|
34 |
["##logy"],
|