awacke1 commited on
Commit
8538851
·
1 Parent(s): 7e4e0eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -66,8 +66,7 @@ def save_and_play_audio(audio_recorder):
66
  def create_file(filename, prompt, response):
67
  if filename.endswith(".txt"):
68
  with open(filename, 'w') as file:
69
- #file.write(f"{prompt}\nResponse:\n{response}")
70
- file.write(f"{prompt}\r\n{response}")
71
  elif filename.endswith(".htm"):
72
  with open(filename, 'w') as file:
73
  file.write(f"{prompt} {response}")
 
66
  def create_file(filename, prompt, response):
67
  if filename.endswith(".txt"):
68
  with open(filename, 'w') as file:
69
+ file.write(f"{prompt}\n{response}")
 
70
  elif filename.endswith(".htm"):
71
  with open(filename, 'w') as file:
72
  file.write(f"{prompt} {response}")