deepsh2207 commited on
Commit
9bc57af
·
1 Parent(s): 84f3cde

Updates in ui headings

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -109,17 +109,18 @@ def main(det_archs, reco_archs):
109
  for word in line['words']:
110
  all_text+=word['value']
111
  all_text+=' '
112
- all_text+='\n'
113
 
114
  print('all_text', all_text)
115
  print('\n')
116
 
117
  # Display Text
118
- st.markdown("\nHere is your text:")
119
  st.write(all_text)
120
 
121
  # Display JSON
122
- st.markdown("\nHere are your analysis results in JSON format:")
 
123
  st.json(page_export, expanded=False)
124
 
125
 
 
109
  for word in line['words']:
110
  all_text+=word['value']
111
  all_text+=' '
112
+ all_text+='\n'
113
 
114
  print('all_text', all_text)
115
  print('\n')
116
 
117
  # Display Text
118
+ st.markdown("\n#**Here is your text:**")
119
  st.write(all_text)
120
 
121
  # Display JSON
122
+ st.markdown("\n#**Here are your analysis results in JSON format:**")
123
+ st.download_button(label="Download JSON", data=page_export, file_name='data.json', mime='application/json')
124
  st.json(page_export, expanded=False)
125
 
126