awacke1 commited on
Commit
8600b25
·
1 Parent(s): 756ad34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -282,7 +282,7 @@ def create_file(filename, prompt, response, should_save=True):
282
  return
283
  base_filename, ext = os.path.splitext(filename)
284
  #has_python_code = bool(re.search(r"```python([\s\S]*?)```", response))
285
- has_python_code = false
286
  if ext in ['.txt', '.htm', '.md']:
287
  with open(f"{base_filename}.md", 'w') as file:
288
  content = prompt.strip() + '\r\n' + response
 
282
  return
283
  base_filename, ext = os.path.splitext(filename)
284
  #has_python_code = bool(re.search(r"```python([\s\S]*?)```", response))
285
+ has_python_code = False
286
  if ext in ['.txt', '.htm', '.md']:
287
  with open(f"{base_filename}.md", 'w') as file:
288
  content = prompt.strip() + '\r\n' + response