Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def generation_model():
|
|
35 |
if option == "Extractive question answering":
|
36 |
st.markdown("<h2 style='text-align: center; color:grey;'>Extractive Question Answering</h2>", unsafe_allow_html=True)
|
37 |
st.markdown("<h3 style='text-align: left; color:#F63366; font-size:18px;'><b>What is extractive question answering about?<b></h3>", unsafe_allow_html=True)
|
38 |
-
st.markdown('___')
|
39 |
st.write("Extractive question answering is a Natural Language Processing task where text is provided for a model so that the model can refer to it and make predictions about where the answer to a question is.")
|
|
|
40 |
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"])
|
41 |
sample_question = "What did the shepherd boy do to amuse himself?"
|
42 |
if source == "I want to input some text":
|
@@ -100,7 +100,6 @@ elif option == "Text summarization":
|
|
100 |
elif option == "Text generation":
|
101 |
st.markdown("<h2 style='text-align: center; color:grey;'>Text Generation</h2>", unsafe_allow_html=True)
|
102 |
st.markdown("<h3 style='text-align: left; color:#F63366; font-size:18px;'><b>What is this App about?<b></h3>", unsafe_allow_html=True)
|
103 |
-
st.markdown('___')
|
104 |
st.write("Text generation is the task of generating text with the goal of appearing indistinguishable to human-written text.")
|
105 |
st.markdown('___')
|
106 |
text = st.text_input(label="Enter one line of text and let the NLP model generate the rest for you")
|
|
|
35 |
if option == "Extractive question answering":
|
36 |
st.markdown("<h2 style='text-align: center; color:grey;'>Extractive Question Answering</h2>", unsafe_allow_html=True)
|
37 |
st.markdown("<h3 style='text-align: left; color:#F63366; font-size:18px;'><b>What is extractive question answering about?<b></h3>", unsafe_allow_html=True)
|
|
|
38 |
st.write("Extractive question answering is a Natural Language Processing task where text is provided for a model so that the model can refer to it and make predictions about where the answer to a question is.")
|
39 |
+
st.markdown('___')
|
40 |
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"])
|
41 |
sample_question = "What did the shepherd boy do to amuse himself?"
|
42 |
if source == "I want to input some text":
|
|
|
100 |
elif option == "Text generation":
|
101 |
st.markdown("<h2 style='text-align: center; color:grey;'>Text Generation</h2>", unsafe_allow_html=True)
|
102 |
st.markdown("<h3 style='text-align: left; color:#F63366; font-size:18px;'><b>What is this App about?<b></h3>", unsafe_allow_html=True)
|
|
|
103 |
st.write("Text generation is the task of generating text with the goal of appearing indistinguishable to human-written text.")
|
104 |
st.markdown('___')
|
105 |
text = st.text_input(label="Enter one line of text and let the NLP model generate the rest for you")
|