akhooli commited on
Commit
ceb6ff1
1 Parent(s): 18f406c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import os
3
  import gradio as gr
4
 
5
 
6
- path_to_index = 'colbert/indexes/akhooli/Arabic-ColBERT-10knew_index'
7
  message = "waiting to load index ..."
8
  if os.path.exists(path_to_index):
9
  RAG = RAGPretrainedModel.from_index(path_to_index)
@@ -29,7 +29,7 @@ qapp = gr.Interface(fn=answer_fn, inputs="textbox", outputs="textbox",
29
  "ما أهمية كتابة المعاملات؟", "أخبرني عن عذاب الله للمنافقين", "حسن معاملة الوالدين", "ما معجزات سيدنا عيسى", "ما هو التطفيف"
30
  ],
31
  title="Qur\'an Retrieval Demo - Semantic Search",
32
- description="A basic demo based on Arabic ColBERT (10k triplets) and simple text of the Qur\'an. First query may take a minute, then much faster.\
33
- Try to include relevant terms - this is just retrieval, not LLM chat.",)
34
  if __name__ == "__main__":
35
  qapp.launch()
 
3
  import gradio as gr
4
 
5
 
6
+ path_to_index = 'colbert/indexes/ArColbertQuran'
7
  message = "waiting to load index ..."
8
  if os.path.exists(path_to_index):
9
  RAG = RAGPretrainedModel.from_index(path_to_index)
 
29
  "ما أهمية كتابة المعاملات؟", "أخبرني عن عذاب الله للمنافقين", "حسن معاملة الوالدين", "ما معجزات سيدنا عيسى", "ما هو التطفيف"
30
  ],
31
  title="Qur\'an Retrieval Demo - Semantic Search",
32
+ description="A basic demo based on Arabic ColBERT (100k triplets) and simple text of the Qur\'an. First query may take a minute, then much faster.\
33
+ Try to include relevant terms - this is just retrieval, not LLM chat and Qur\'an is an edge case.",)
34
  if __name__ == "__main__":
35
  qapp.launch()