Spaces:
Sleeping
Sleeping
Commit
·
4a68d1b
1
Parent(s):
71fcce9
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ import re
|
|
5 |
import json
|
6 |
from openai import OpenAI
|
7 |
import secrets
|
8 |
-
from huggingface_hub import HfFileSystem
|
9 |
|
10 |
client = OpenAI(
|
11 |
api_key = st.secrets["open_ai_key"]
|
@@ -215,6 +214,6 @@ if st.session_state.gpt_response is not None:
|
|
215 |
st.markdown(recipe_md)
|
216 |
# st.button("📋", on_click=on_copy_click, args=(full_response,))
|
217 |
# write to file
|
218 |
-
filename = create_safe_filename(recipe["name"])
|
219 |
-
with open(f"/data/generated/{filename}.json", "w") as f:
|
220 |
-
|
|
|
5 |
import json
|
6 |
from openai import OpenAI
|
7 |
import secrets
|
|
|
8 |
|
9 |
client = OpenAI(
|
10 |
api_key = st.secrets["open_ai_key"]
|
|
|
214 |
st.markdown(recipe_md)
|
215 |
# st.button("📋", on_click=on_copy_click, args=(full_response,))
|
216 |
# write to file
|
217 |
+
# filename = create_safe_filename(recipe["name"])
|
218 |
+
# with open(f"/data/generated/{filename}.json", "w") as f:
|
219 |
+
# json.dump(recipe, f)
|