Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -22,8 +22,8 @@ def comparison_json(json1, json2):
|
|
| 22 |
st.title("Json file Comparison File")
|
| 23 |
st.write("Upload Two JSON files to find similar values.")
|
| 24 |
|
| 25 |
-
file1 = st.
|
| 26 |
-
file2 = st.
|
| 27 |
|
| 28 |
if file1 and file2:
|
| 29 |
json1 = json.load(file1)
|
|
|
|
| 22 |
st.title("Json file Comparison File")
|
| 23 |
st.write("Upload Two JSON files to find similar values.")
|
| 24 |
|
| 25 |
+
file1 = st.file_uploader("Upload First JSON File", type=["json"])
|
| 26 |
+
file2 = st.file_uploader("Upload Second JSON File", type=["json"])
|
| 27 |
|
| 28 |
if file1 and file2:
|
| 29 |
json1 = json.load(file1)
|