BenjiELCA commited on
Commit
439a251
1 Parent(s): 64b088f

Update modules/streamlit_utils.py

Browse files

change the name of to modify prediction

Files changed (1) hide show
  1. modules/streamlit_utils.py +3 -3
modules/streamlit_utils.py CHANGED
@@ -330,7 +330,7 @@ def display_sidebar():
330
  st.sidebar.text("3. Set the score threshold for\n prediction (default is 0.5)")
331
  st.sidebar.text("4. Click on 'Launch Prediction'")
332
  st.sidebar.text("5. You can now see the\n annotation and the BPMN XML\n result")
333
- st.sidebar.text("6. You can modify the result \n by clicking on:\n 'Method&Style modification'")
334
  st.sidebar.text("7. You can change the scale for \n the XML file and the size of \n elements (default is 1.0)")
335
  st.sidebar.text("8. You can modify with modeler \n and download the result in \n right format")
336
  st.sidebar.subheader("If there is an error, try to:")
@@ -525,7 +525,7 @@ def launch_prediction(cropped_image, score_threshold, is_mobile, screen_width):
525
 
526
  def modify_results(percentage_text_dist_thresh=0.5):
527
  """
528
- Allows the user to modify the results using method and style modification.
529
 
530
  Parameters:
531
  - percentage_text_dist_thresh (float): Threshold for mapping text to predictions based on percentage distance.
@@ -533,7 +533,7 @@ def modify_results(percentage_text_dist_thresh=0.5):
533
  Returns:
534
  - bool: True if changes are detected and modifications are made, otherwise False.
535
  """
536
- with st.expander("Method & Style modification"):
537
  label_list = list(object_dict.values())
538
  if st.session_state.prediction['labels'][-1] == 6:
539
  bboxes = [[int(coord) for coord in box] for box in st.session_state.prediction['boxes'][:-1]]
 
330
  st.sidebar.text("3. Set the score threshold for\n prediction (default is 0.5)")
331
  st.sidebar.text("4. Click on 'Launch Prediction'")
332
  st.sidebar.text("5. You can now see the\n annotation and the BPMN XML\n result")
333
+ st.sidebar.text("6. You can modify the result \n by clicking on:\n 'Modify prediction'")
334
  st.sidebar.text("7. You can change the scale for \n the XML file and the size of \n elements (default is 1.0)")
335
  st.sidebar.text("8. You can modify with modeler \n and download the result in \n right format")
336
  st.sidebar.subheader("If there is an error, try to:")
 
525
 
526
  def modify_results(percentage_text_dist_thresh=0.5):
527
  """
528
+ Allows the user to modify the results using Modify prediction.
529
 
530
  Parameters:
531
  - percentage_text_dist_thresh (float): Threshold for mapping text to predictions based on percentage distance.
 
533
  Returns:
534
  - bool: True if changes are detected and modifications are made, otherwise False.
535
  """
536
+ with st.expander("Modify prediction"):
537
  label_list = list(object_dict.values())
538
  if st.session_state.prediction['labels'][-1] == 6:
539
  bboxes = [[int(coord) for coord in box] for box in st.session_state.prediction['boxes'][:-1]]