awacke1 commited on
Commit
54d5a53
1 Parent(s): 92736b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -285,9 +285,9 @@ def create_file(filename, prompt, response, should_save=True):
285
  with open(f"{base_filename}.md", 'w') as file:
286
  try:
287
  content = prompt.strip() + '\r\n' + response
 
288
  except:
289
  st.write('.')
290
- file.write(content)
291
 
292
  #has_python_code = re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response)
293
  #has_python_code = bool(re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response))
 
285
  with open(f"{base_filename}.md", 'w') as file:
286
  try:
287
  content = prompt.strip() + '\r\n' + response
288
+ file.write(content)
289
  except:
290
  st.write('.')
 
291
 
292
  #has_python_code = re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response)
293
  #has_python_code = bool(re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response))