ok
Browse files
app.py
CHANGED
@@ -17,7 +17,6 @@ Settings.embed_model = embed_model
|
|
17 |
|
18 |
def qa(question: str, doc: str) -> str:
|
19 |
my_pdf = SimpleDirectoryReader(input_files=[doc]).load_data()
|
20 |
-
reponse = my_pdf + reponse
|
21 |
my_pdf_index = VectorStoreIndex.from_documents(my_pdf)
|
22 |
my_pdf_engine = my_pdf_index.as_query_engine()
|
23 |
question = "repond en francais, " + question
|
|
|
17 |
|
18 |
def qa(question: str, doc: str) -> str:
|
19 |
my_pdf = SimpleDirectoryReader(input_files=[doc]).load_data()
|
|
|
20 |
my_pdf_index = VectorStoreIndex.from_documents(my_pdf)
|
21 |
my_pdf_engine = my_pdf_index.as_query_engine()
|
22 |
question = "repond en francais, " + question
|