akhooli commited on
Commit
e8d071a
·
verified ·
1 Parent(s): 1379df3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -24,6 +24,11 @@ def answer_fn(query):
24
  results = RAG.search(query= query, k=k)
25
  return process_results(results)
26
 
27
- qapp = gr.Interface(fn=answer_fn, inputs="textbox", outputs="textbox")
 
 
 
 
 
28
  if __name__ == "__main__":
29
  qapp.launch()
 
24
  results = RAG.search(query= query, k=k)
25
  return process_results(results)
26
 
27
+ qapp = gr.Interface(fn=answer_fn, inputs="textbox", outputs="textbox",
28
+ examples=[
29
+ "ما أهمية كتابة المعاملات؟", "أخبرني عن عذاب الله للمنافقين", "حدثني عن طاعة الوالدين وحسن معاملتهما",
30
+ ]
31
+ title="Qur\'an Retrieval Demo - Semantic Search",
32
+ description="A simple demo based on Arabic ColBERT and simple text of the Qur\'an. First query may take a minute, then much faster",)
33
  if __name__ == "__main__":
34
  qapp.launch()