peterpull commited on
Commit
769dde8
·
1 Parent(s): 9496038

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,11 +46,11 @@ def generate_text() -> str:
46
 
47
  def store_message(chatinput: str, chatresponse: str):
48
  if chatinput and chatresponse:
 
49
  with open(NEW_FILE, "a") as file:
50
  file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
51
  print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
52
 
53
- os.makedirs(NEW_DIR, exist_ok=True)
54
  repo.clone(NEW_DIR, exist_ok=True)
55
  print("Cloned remote repository to new directory")
56
  shutil.copyfile(DATA_FILE, NEW_FILE)
 
46
 
47
  def store_message(chatinput: str, chatresponse: str):
48
  if chatinput and chatresponse:
49
+ os.makedirs(NEW_DIR, exist_ok=True)
50
  with open(NEW_FILE, "a") as file:
51
  file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
52
  print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
53
 
 
54
  repo.clone(NEW_DIR, exist_ok=True)
55
  print("Cloned remote repository to new directory")
56
  shutil.copyfile(DATA_FILE, NEW_FILE)