Spaces:
Sleeping
Sleeping
Commit
·
a655662
1
Parent(s):
064fada
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,10 @@ with open('/data/test_output.json', 'w') as f:
|
|
22 |
# Use json.dump() to write the dictionary to the file
|
23 |
json.dump(new_data, f, indent=4) # `indent=4` is for pretty-printing the JSON file
|
24 |
|
|
|
|
|
|
|
|
|
25 |
client = OpenAI(
|
26 |
api_key = st.secrets["open_ai_key"]
|
27 |
)
|
|
|
22 |
# Use json.dump() to write the dictionary to the file
|
23 |
json.dump(new_data, f, indent=4) # `indent=4` is for pretty-printing the JSON file
|
24 |
|
25 |
+
f = open('/data/test_output.json')
|
26 |
+
json_test_2 = json.load(f)
|
27 |
+
st.json(json_test_2)
|
28 |
+
|
29 |
client = OpenAI(
|
30 |
api_key = st.secrets["open_ai_key"]
|
31 |
)
|