davidr70 commited on
Commit
3be4587
·
1 Parent(s): 891d779

change to use megillah

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -32,14 +32,15 @@ def ask(question):
32
  return full_result
33
 
34
 
35
- with gr.Blocks(title="Menachot Search") as demo:
36
- gr.Markdown("# Menachot Search")
37
- gr.Markdown("Search through the Menachot dataset using RAG")
38
 
39
- question = gr.Textbox(label="Question", placeholder="Ask a question about Menachot...")
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