Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,10 @@ def main():
|
|
13 |
if uploaded_file is not None:
|
14 |
if st.button("Convert to JSON"):
|
15 |
try:
|
16 |
-
|
|
|
|
|
|
|
17 |
st.json(result)
|
18 |
|
19 |
# Option to download the JSON
|
|
|
13 |
if uploaded_file is not None:
|
14 |
if st.button("Convert to JSON"):
|
15 |
try:
|
16 |
+
file_bytes = uploaded_file.read()
|
17 |
+
|
18 |
+
# Pass the bytes to cv_to_json
|
19 |
+
result = cv_to_json(file_bytes)
|
20 |
st.json(result)
|
21 |
|
22 |
# Option to download the JSON
|