Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -183,7 +183,7 @@ elif choose == "CNN":
|
|
| 183 |
# Upload file
|
| 184 |
training_file = st.file_uploader("Upload Data Training (.txt)", accept_multiple_files=True)
|
| 185 |
|
| 186 |
-
if
|
| 187 |
text_training_file, title_traning = extract_text_from_file(training_file)
|
| 188 |
|
| 189 |
# file_1 = st.sidebar.file_uploader('Upload Data Training (.txt)', type=['txt'],accept_multiple_files=False, key='file_1', label_visibility='hidden')
|
|
|
|
| 183 |
# Upload file
|
| 184 |
training_file = st.file_uploader("Upload Data Training (.txt)", accept_multiple_files=True)
|
| 185 |
|
| 186 |
+
if training_file is not None:
|
| 187 |
text_training_file, title_traning = extract_text_from_file(training_file)
|
| 188 |
|
| 189 |
# file_1 = st.sidebar.file_uploader('Upload Data Training (.txt)', type=['txt'],accept_multiple_files=False, key='file_1', label_visibility='hidden')
|