Spaces:
Runtime error
Runtime error
taskswithcode
commited on
Commit
·
6ad0c29
1
Parent(s):
44fc84f
cosmetic changes
Browse files
app.py
CHANGED
|
@@ -278,7 +278,7 @@ def main():
|
|
| 278 |
|
| 279 |
with st.form('twc_form'):
|
| 280 |
|
| 281 |
-
uploaded_file = st.file_uploader("Step 1. Upload text file(one sentence in a line) or choose an example text file below
|
| 282 |
|
| 283 |
selected_file_index = st.selectbox(label='Example files ',
|
| 284 |
options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
|
|
@@ -288,7 +288,7 @@ def main():
|
|
| 288 |
selected_model = st.selectbox(label=selection_label,
|
| 289 |
options = options_arr, index=0, key = "twc_model")
|
| 290 |
st.write("")
|
| 291 |
-
main_index = st.number_input('Step 3. Enter index of sentence in file to make it the main sentence
|
| 292 |
st.write("")
|
| 293 |
submit_button = st.form_submit_button('Run')
|
| 294 |
|
|
|
|
| 278 |
|
| 279 |
with st.form('twc_form'):
|
| 280 |
|
| 281 |
+
uploaded_file = st.file_uploader("Step 1. Upload text file(one sentence in a line) or choose an example text file below", type=".txt")
|
| 282 |
|
| 283 |
selected_file_index = st.selectbox(label='Example files ',
|
| 284 |
options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
|
|
|
|
| 288 |
selected_model = st.selectbox(label=selection_label,
|
| 289 |
options = options_arr, index=0, key = "twc_model")
|
| 290 |
st.write("")
|
| 291 |
+
main_index = st.number_input('Step 3. Enter index of sentence in file to make it the main sentence',value=1,min_value = 1)
|
| 292 |
st.write("")
|
| 293 |
submit_button = st.form_submit_button('Run')
|
| 294 |
|