fizban commited on
Commit
1e95982
1 Parent(s): eb30bc9

add placeholder

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def search(query):
25
  hits = [hit for _, hit in sorted(zip(cross_scores, hits), reverse=True)]
26
  return hits[0]
27
 
28
- iface = gr.Interface(fn=search, inputs="text", outputs="text")
29
  iface.launch()
30
 
31
  #print(search("what is the balloon boy hoax"))
 
25
  hits = [hit for _, hit in sorted(zip(cross_scores, hits), reverse=True)]
26
  return hits[0]
27
 
28
+ iface = gr.Interface(fn=search, inputs=gr.Textbox(lines=2, placeholder="Write a question to the Wikipedia..."), outputs="text")
29
  iface.launch()
30
 
31
  #print(search("what is the balloon boy hoax"))