Spaces:
Running
Running
Commit
·
1b126d9
1
Parent(s):
6a7cbb7
Update app.py
Browse files
app.py
CHANGED
@@ -218,5 +218,6 @@ 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", "w") as f:
|
222 |
-
|
|
|
|
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)
|
223 |
+
recipe.to_json(f"/generated/{filename}.json")
|