Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
47 |
tableau_de_mots=mot_cle("mots_clés.txt")
|
48 |
mots_a_verifier = tableau_de_mots
|
49 |
docs_text, docs_embeddings = load_data()
|
50 |
-
question=message
|
51 |
prompt=pip(question,docs_text, docs_embeddings,mots_a_verifier,vector_db)
|
52 |
print(prompt)
|
53 |
|
|
|
47 |
tableau_de_mots=mot_cle("mots_clés.txt")
|
48 |
mots_a_verifier = tableau_de_mots
|
49 |
docs_text, docs_embeddings = load_data()
|
50 |
+
question={"role": "user", "content": message}
|
51 |
prompt=pip(question,docs_text, docs_embeddings,mots_a_verifier,vector_db)
|
52 |
print(prompt)
|
53 |
|