recipes_app / pages /2_Saved_Recipes.py
adrianpierce's picture
Update pages/2_Saved_Recipes.py
80d7df8
raw
history blame
560 Bytes
import streamlit as st
import json
st.write("Saved")
import os
# Path to the directory you want to search
directory_path = '/data/'
# List to hold all python files
python_files = []
# Walk through directory
for root, dirs, files in os.walk(directory_path):
for file in files:
if file.endswith('.json'):
# Create full path to file
full_path = os.path.join(root, file)
python_files.append(full_path)
st.write(python_files)
# f = open('/data/test_output.json')
# json_test = json.load(f)
# st.json(json_test)