Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def sentiment_model():
|
|
35 |
|
36 |
if option == 'Extractive question answering':
|
37 |
st.markdown("<h2 style='text-align: center; color:red;'>Extract answer from text</h2>", unsafe_allow_html=True)
|
38 |
-
|
39 |
if source == "I want to input some text":
|
40 |
sample_text = ""
|
41 |
with open(sample.txt, "r") as text_file:
|
|
|
35 |
|
36 |
if option == 'Extractive question answering':
|
37 |
st.markdown("<h2 style='text-align: center; color:red;'>Extract answer from text</h2>", unsafe_allow_html=True)
|
38 |
+
source = st.radio("How would you like to start? Choose an option below", ["I want to input some text", "I want to upload a file"])
|
39 |
if source == "I want to input some text":
|
40 |
sample_text = ""
|
41 |
with open(sample.txt, "r") as text_file:
|