lydianish commited on
Commit
1239ceb
·
verified ·
1 Parent(s): 3a47baa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -62,9 +62,7 @@ def main():
62
  num_pairs = cols[1].number_input('Number of Text Input Pairs (1-10):', min_value=1, max_value=10, value=5)
63
 
64
  with st.form('text_input_form'):
65
- col1, col2 = st.columns(2)
66
- col1.write('Enter standard text here:')
67
- col2.write('Enter non-standard text here:')
68
 
69
  std_text_inputs = []
70
  ugc_text_inputs = []
@@ -72,10 +70,10 @@ def main():
72
  for i in range(num_pairs):
73
  col1, col2 = st.columns(2)
74
  with col1:
75
- text_input1 = st.text_input('Enter standard text here:', key=f'std{i}', value=sample_std[i], label_visibility='collapsed')
76
  std_text_inputs.append(text_input1)
77
  with col2:
78
- text_input2 = st.text_input('Enter non-standard text here:', key=f'ugc{i}', value=sample_ugc[i], label_visibility='collapsed')
79
  ugc_text_inputs.append(text_input2)
80
 
81
  st.caption('*The models are case-insensitive: all texts will be lowercased.*')
 
62
  num_pairs = cols[1].number_input('Number of Text Input Pairs (1-10):', min_value=1, max_value=10, value=5)
63
 
64
  with st.form('text_input_form'):
65
+ st.write('Enter standard and non-standard texts here:')
 
 
66
 
67
  std_text_inputs = []
68
  ugc_text_inputs = []
 
70
  for i in range(num_pairs):
71
  col1, col2 = st.columns(2)
72
  with col1:
73
+ text_input1 = st.text_input(f'Standard text {i+1}:', key=f'std{i}', value=sample_std[i])
74
  std_text_inputs.append(text_input1)
75
  with col2:
76
+ text_input2 = st.text_input(f'Non-standard text {i+1}:', key=f'ugc{i}', value=sample_ugc[i])
77
  ugc_text_inputs.append(text_input2)
78
 
79
  st.caption('*The models are case-insensitive: all texts will be lowercased.*')