Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|