tarekfer8 commited on
Commit
025c907
·
verified ·
1 Parent(s): 8920296

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
- from djezzy import load_data,mot_cle,pip
4
 
5
 
6
  """
@@ -50,7 +50,7 @@ tableau_de_mots=mot_cle("mots_clés.txt")
50
  mots_a_verifier = tableau_de_mots
51
  docs_text, docs_embeddings = load_data()
52
  question="give me the advantage of djezzy legend for 2500 DA ?"
53
- prompt=pip(question,docs_text, docs_embeddings,mots_a_verifier)
54
  print(prompt)
55
 
56
  demo = gr.ChatInterface(
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ from djezzy import load_data,mot_cle,pip,vector_db
4
 
5
 
6
  """
 
50
  mots_a_verifier = tableau_de_mots
51
  docs_text, docs_embeddings = load_data()
52
  question="give me the advantage of djezzy legend for 2500 DA ?"
53
+ prompt=pip(question,docs_text, docs_embeddings,mots_a_verifier,vector_db)
54
  print(prompt)
55
 
56
  demo = gr.ChatInterface(