Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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))
|