Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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('
|
76 |
std_text_inputs.append(text_input1)
|
77 |
with col2:
|
78 |
-
text_input2 = st.text_input('
|
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.*')
|