vaibhavsharda commited on
Commit
1d7d42c
1 Parent(s): 5b74bcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -280,17 +280,17 @@ def app_main(app_mode,example_files,model_name_files,clus_types):
280
  display_results(sentences,results,response_info,app_mode,run_model)
281
  #st.json(results)
282
 
283
- if submit_button:
284
- st.download_button(
285
- label="Download results as JSON",
286
- data=st.session_state["download_ready"] if st.session_state["download_ready"] is not None else "",
287
- disabled=not st.session_state["download_ready"],
288
- file_name=(st.session_state["model_name"] + "_" + str(st.session_state["threshold"]) + "_" +
289
- st.session_state["overlapped"] + "_" + '_'.join(st.session_state["file_name"].split(".")[:-1]) +
290
- ".json").replace("/", "_"),
291
- mime='text/json',
292
- key="download"
293
- )
294
 
295
 
296
 
 
280
  display_results(sentences,results,response_info,app_mode,run_model)
281
  #st.json(results)
282
 
283
+ if submit_button:
284
+ st.download_button(
285
+ label="Download results as JSON",
286
+ data=st.session_state["download_ready"] if st.session_state["download_ready"] is not None else "",
287
+ disabled=not st.session_state["download_ready"],
288
+ file_name=(st.session_state["model_name"] + "_" + str(st.session_state["threshold"]) + "_" +
289
+ st.session_state["overlapped"] + "_" + '_'.join(st.session_state["file_name"].split(".")[:-1]) +
290
+ ".json").replace("/", "_"),
291
+ mime='text/json',
292
+ key="download"
293
+ )
294
 
295
 
296