Essa20001 commited on
Commit
2a6c54f
·
verified ·
1 Parent(s): 1efdae1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- result = cv_to_json(uploaded_file)
 
 
 
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