adrianpierce commited on
Commit
6a7cbb7
·
1 Parent(s): 14698e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -218,5 +218,5 @@ if st.session_state.gpt_response is not None:
218
  # st.button("📋", on_click=on_copy_click, args=(full_response,))
219
  # write to file
220
  filename = create_safe_filename(recipe["name"])
221
- with fs.open(f"/generated/{filename}.json", "wb") as f:
222
- f.write(json.dump(recipe, f))
 
218
  # st.button("📋", on_click=on_copy_click, args=(full_response,))
219
  # write to file
220
  filename = create_safe_filename(recipe["name"])
221
+ with fs.open(f"/generated/{filename}.json", "w") as f:
222
+ json.dump(recipe, f)