ZongqianLi commited on
Commit
361a5d3
·
verified ·
1 Parent(s): 5a169fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -132,14 +132,11 @@ with open(st.session_state['cde'], 'r') as file:
132
 
133
  st.session_state['paper'] = "./reference_paper.json"
134
  st.session_state['paper'] = st.selectbox("Paper collection path:", paper_lst)
135
- st.write("Example of the paper in collection: ")
136
  with open(st.session_state['paper'],'r+', encoding = "utf-8") as f:
137
  string = f.read()
138
- extractions = json.loads(string)
139
- for extraction in extractions:
140
- json_data = json.loads(extraction)
141
- json_string = json.dumps(json_data, indent=4)
142
- st.text_area("", value=json_string, height=200)
143
- break
144
 
145
 
 
132
 
133
  st.session_state['paper'] = "./reference_paper.json"
134
  st.session_state['paper'] = st.selectbox("Paper collection path:", paper_lst)
135
+ st.write("Example of the paper collection: ")
136
  with open(st.session_state['paper'],'r+', encoding = "utf-8") as f:
137
  string = f.read()
138
+ json_data = json.loads(string)
139
+ json_string = json.dumps(json_data, indent=4)
140
+ st.text_area("", value=json_string, height=200)
 
 
 
141
 
142