Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,8 +99,8 @@ def upload_file(filepath):
|
|
| 99 |
documents = SimpleDirectoryReader(filepath).load_data()
|
| 100 |
index = VectorStoreIndex.from_documents(documents)
|
| 101 |
#query_engine = index.as_query_engine()
|
| 102 |
-
#condense_question
|
| 103 |
-
chat_engine = index.as_chat_engine(chat_mode="
|
| 104 |
return filepath
|
| 105 |
|
| 106 |
def resetChat():
|
|
|
|
| 99 |
documents = SimpleDirectoryReader(filepath).load_data()
|
| 100 |
index = VectorStoreIndex.from_documents(documents)
|
| 101 |
#query_engine = index.as_query_engine()
|
| 102 |
+
#condense_question condense_plus_context
|
| 103 |
+
chat_engine = index.as_chat_engine(chat_mode="best", verbose=True)
|
| 104 |
return filepath
|
| 105 |
|
| 106 |
def resetChat():
|