ceejaytheanalyst commited on
Commit
8441d3c
·
verified ·
1 Parent(s): 0467de2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -19,9 +19,9 @@ def validate_input(input_string):
19
 
20
  # Check if input contains at least one non-numeric character
21
  if re.match(pattern, input_string) or not input_string.isdigit():
22
- return True
23
- else:
24
  return False
 
 
25
 
26
  # Define the function for mapping code
27
  def mapping_code(user_input):
@@ -56,14 +56,14 @@ import streamlit as st
56
 
57
  def main():
58
  st.title("CPT Description Mapping")
59
- st.markdown("<font color='red'>**⚠️ Please ensure the accuracy of your input spellings.**</font>", unsafe_allow_html=True)
60
 
61
- st.markdown("<font color='blue'>**💡 Note:** Please note that the similarity scores provided are not indicative of accuracy. Top 5 code descriptions provided should be verified with CPT descriptions by the user.</font>", unsafe_allow_html=True)
62
 
63
  # user_slider_input_number = st.sidebar.slider('Select similarity threshold', 0.0, 1.0, 0.7, 0.01, key='slider1', help='Adjust the similarity threshold')
64
 
65
  # Input text box for user input
66
- user_input = st.text_input("Enter CPT description:", placeholder="Please enter a full description for better search results.")
67
 
68
  # Button to trigger mapping
69
  if st.button("Map"):
 
19
 
20
  # Check if input contains at least one non-numeric character
21
  if re.match(pattern, input_string) or not input_string.isdigit():
 
 
22
  return False
23
+ else:
24
+ return True
25
 
26
  # Define the function for mapping code
27
  def mapping_code(user_input):
 
56
 
57
  def main():
58
  st.title("CPT Description Mapping")
59
+ st.markdown("<font color='blue'>**💡 Please enter the input CPT description with specific available details for best results.**</font>", unsafe_allow_html=True)
60
 
61
+ st.markdown("<font color='blue'>**💡 Note:** Please note that the similarity scores of each code are the calculated based on language module matching and the top 5 codes descriptions results should be verified with CPT description by the user.</font>", unsafe_allow_html=True)
62
 
63
  # user_slider_input_number = st.sidebar.slider('Select similarity threshold', 0.0, 1.0, 0.7, 0.01, key='slider1', help='Adjust the similarity threshold')
64
 
65
  # Input text box for user input
66
+ user_input = st.text_input("Enter CPT description:", placeholder="Please enter the input CPT description with specific available details for best results.")
67
 
68
  # Button to trigger mapping
69
  if st.button("Map"):