Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,12 +54,12 @@ class Chatbot:
|
|
54 |
dataset_dir.mkdir(parents=True, exist_ok=True)
|
55 |
self.dataset_path = dataset_dir / f"chat_log_{uuid4()}.json"
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
|
64 |
def generate_response(self, user_input):
|
65 |
query_engine = index.as_query_engine(llm=llm_predictor)
|
|
|
54 |
dataset_dir.mkdir(parents=True, exist_ok=True)
|
55 |
self.dataset_path = dataset_dir / f"chat_log_{uuid4()}.json"
|
56 |
|
57 |
+
scheduler = CommitScheduler(
|
58 |
+
repo_id="history_data",
|
59 |
+
repo_type="dataset",
|
60 |
+
folder_path=dataset_dir,
|
61 |
+
path_in_repo="data",
|
62 |
+
)
|
63 |
|
64 |
def generate_response(self, user_input):
|
65 |
query_engine = index.as_query_engine(llm=llm_predictor)
|