zlmqi commited on
Commit
61e9b9a
1 Parent(s): 5ef15d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- #scheduler = CommitScheduler(
58
- # repo_id="index",
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)
 
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)