Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +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 |
-
|
70 |
elif filename.endswith(".htm"):
|
71 |
with open(filename, 'w') as file:
|
72 |
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}")
|