christopher commited on
Commit
4823942
Β·
1 Parent(s): 94e723b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"],