Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ input_method = st.radio("", ('Write or Paste New Text', 'Upload File'))
|
|
49 |
|
50 |
if input_method == "Write or Paste New Text":
|
51 |
input_text = st.text_area('Write or Paste Text Below', value="", height=128)
|
52 |
-
|
53 |
uploaded_file = st.file_uploader("Choose a file", type=["txt", "pdf", "docx"])
|
54 |
if uploaded_file is not None:
|
55 |
input_text = read_file(uploaded_file)
|
|
|
49 |
|
50 |
if input_method == "Write or Paste New Text":
|
51 |
input_text = st.text_area('Write or Paste Text Below', value="", height=128)
|
52 |
+
else:
|
53 |
uploaded_file = st.file_uploader("Choose a file", type=["txt", "pdf", "docx"])
|
54 |
if uploaded_file is not None:
|
55 |
input_text = read_file(uploaded_file)
|