Spaces:
Runtime error
Runtime error
ankur310794
commited on
Commit
•
8e15bef
1
Parent(s):
4dbe29d
default question added
Browse files
app.py
CHANGED
@@ -123,6 +123,6 @@ def search(question):
|
|
123 |
return pd.DataFrame([dicts[i] for i in index[0]])
|
124 |
|
125 |
import gradio as gr
|
126 |
-
inp = gr.inputs.Textbox(lines=2, default=
|
127 |
out = gr.outputs.Dataframe(label="Answers")#gr.outputs.Textbox(label="Answers")
|
128 |
gr.Interface(fn=search, inputs=inp, outputs=out).launch()
|
|
|
123 |
return pd.DataFrame([dicts[i] for i in index[0]])
|
124 |
|
125 |
import gradio as gr
|
126 |
+
inp = gr.inputs.Textbox(lines=2, default="Who is aamir khan?", label="Question")
|
127 |
out = gr.outputs.Dataframe(label="Answers")#gr.outputs.Textbox(label="Answers")
|
128 |
gr.Interface(fn=search, inputs=inp, outputs=out).launch()
|