add placeholder
Browse files
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="
|
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"))
|