jonathanjordan21 commited on
Commit
1016625
·
1 Parent(s): 1b463cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -34,7 +34,8 @@ def json_to_tokens(data):
34
  result = ""
35
  for item in data:
36
  result += json_to_tokens(item)
37
- result += "<sep/>"
 
38
  return result
39
  else:
40
  return str(data)
@@ -81,14 +82,6 @@ with st.form("my_form"):
81
  st.session_state.download = True
82
 
83
  if st.session_state.download:
84
- # with open("images.zip", "rb") as f:
85
- # zip_data = f.read()
86
- # st.download_button(label="Download Images", data=zip_data, help="Click to download images file (.zip)")
87
-
88
- # with open("labels.zip", "rb") as t_f:
89
- # t_zip_data = t_f.read()
90
- # st.download_button(label="Download Labels", data=t_zip_data, help="Click to download labels file (.zip)")
91
-
92
  with open("images.zip", "rb") as file:
93
  btn = st.download_button(
94
  label="Download Images",
 
34
  result = ""
35
  for item in data:
36
  result += json_to_tokens(item)
37
+ result += "<sep/>"
38
+ result = result[:-6]
39
  return result
40
  else:
41
  return str(data)
 
82
  st.session_state.download = True
83
 
84
  if st.session_state.download:
 
 
 
 
 
 
 
 
85
  with open("images.zip", "rb") as file:
86
  btn = st.download_button(
87
  label="Download Images",