stilljustanobody commited on
Commit
2a52df6
1 Parent(s): 6e17eec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def format_prompt(message, history):
33
  prompt += f"[INST] {message} [/INST]"
34
  return prompt
35
 
36
- def log_conversation(user_prompt, bot_response, log_file="chatinfo.txt", server_url="https://example.com/save-conversation"):
37
  # Write conversation to the chatinfo.txt file
38
  with open(log_file, "a") as f:
39
  f.write(f"User: {user_prompt}\n")
 
33
  prompt += f"[INST] {message} [/INST]"
34
  return prompt
35
 
36
+ def log_conversation(user_prompt, bot_response, log_file="chatinfo.txt", server_url="chatinfo.txt"):
37
  # Write conversation to the chatinfo.txt file
38
  with open(log_file, "a") as f:
39
  f.write(f"User: {user_prompt}\n")