Spaces:
Runtime error
Runtime error
taskswithcode commited on
Commit ·
618a546
1
Parent(s): 032dbce
Added text
Browse files178 unmodified lines179180181182183184185178 unmodified lineswith st.form('twc_form'):uploaded_file = st.file_uploader("Step 1. Upload text file(one sentence in a line) or choose an example text file below", type=".txt")selected_file_index = st.selectbox(label=f'Example files ({len(example_file_names)})',options = list(dict.keys(example_file_names)), index=0, key = "twc_file")178 unmodified lines179180181182183184185186187188178 unmodified lineswith st.form('twc_form'):step1_line = "Step 1. Upload text file(one sentence in a line) or choose an example text file below"if (app_mode == DOC_RETRIEVAL):step1_line += ". The line need is treated as the query"uploaded_file = st.file_uploader(step1_line, type=".txt")selected_file_index = st.selectbox(label=f'Example files ({len(example_file_names)})',options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
app.py+4-1