Spaces:
Sleeping
Sleeping
change to use megillah
Browse files
app.py
CHANGED
@@ -32,14 +32,15 @@ def ask(question):
|
|
32 |
return full_result
|
33 |
|
34 |
|
35 |
-
with gr.Blocks(title="
|
36 |
-
gr.Markdown("#
|
37 |
-
gr.Markdown("Search through the
|
38 |
|
39 |
-
question = gr.Textbox(label="Question", placeholder="Ask a question about
|
40 |
submit_btn = gr.Button("Search")
|
41 |
answer = gr.Textbox(label="Sources", lines=20)
|
42 |
|
43 |
submit_btn.click(fn=ask, inputs=question, outputs=answer)
|
|
|
|
|
44 |
|
45 |
-
demo.launch()
|
|
|
32 |
return full_result
|
33 |
|
34 |
|
35 |
+
with gr.Blocks(title="Megillah Search") as demo:
|
36 |
+
gr.Markdown("# Megillah Search")
|
37 |
+
gr.Markdown("Search through the Megillah dataset")
|
38 |
|
39 |
+
question = gr.Textbox(label="Question", placeholder="Ask a question about Megillah...")
|
40 |
submit_btn = gr.Button("Search")
|
41 |
answer = gr.Textbox(label="Sources", lines=20)
|
42 |
|
43 |
submit_btn.click(fn=ask, inputs=question, outputs=answer)
|
44 |
+
question.submit(fn=ask, inputs=question, outputs=answer)
|
45 |
+
demo.launch(share=True)
|
46 |
|
|