BenjiELCA commited on
Commit
eaf1ad7
·
1 Parent(s): 35ed612

ready to show the modif widget

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -115,7 +115,7 @@ def launch_prediction(cropped_image, score_threshold, is_mobile, screen_width):
115
  from modules.eval import develop_prediction, generate_data
116
  from modules.utils import class_dict
117
  def modify_results(percentage_text_dist_thresh=0.5):
118
- with st.expander("Method and Style modification"):
119
  label_list = list(class_dict.values())
120
  bboxes = [[int(coord) for coord in box] for box in st.session_state.prediction['boxes']]
121
  for i in range(len(bboxes)):
@@ -191,8 +191,8 @@ def main():
191
  with st.spinner('Waiting for result display...'):
192
  display_options(st.session_state.crop_image, st.session_state.score_threshold, is_mobile, int(5/6 * screen_width))
193
 
194
- #if not is_mobile:
195
- #modify_results()
196
 
197
  with st.expander("Options for BPMN modeler"):
198
  modeler_options(is_mobile)
 
115
  from modules.eval import develop_prediction, generate_data
116
  from modules.utils import class_dict
117
  def modify_results(percentage_text_dist_thresh=0.5):
118
+ with st.expander("Method and Style modification (beta version)"):
119
  label_list = list(class_dict.values())
120
  bboxes = [[int(coord) for coord in box] for box in st.session_state.prediction['boxes']]
121
  for i in range(len(bboxes)):
 
191
  with st.spinner('Waiting for result display...'):
192
  display_options(st.session_state.crop_image, st.session_state.score_threshold, is_mobile, int(5/6 * screen_width))
193
 
194
+ if not is_mobile:
195
+ modify_results()
196
 
197
  with st.expander("Options for BPMN modeler"):
198
  modeler_options(is_mobile)