Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ 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.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 |
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"])
|
40 |
sample_question = "What did the shepherd boy do to amuse himself?"
|
@@ -99,7 +100,9 @@ elif option == "Text summarization":
|
|
99 |
elif option == "Text generation":
|
100 |
st.markdown("<h2 style='text-align: center; color:grey;'>Text Generation</h2>", unsafe_allow_html=True)
|
101 |
st.markdown("<h3 style='text-align: left; color:#F63366; font-size:18px;'><b>What is this App about?<b></h3>", unsafe_allow_html=True)
|
|
|
102 |
st.write("Text generation is the task of generating text with the goal of appearing indistinguishable to human-written text.")
|
|
|
103 |
text = st.text_input(label="Enter one line of text and let the NLP model generate the rest for you")
|
104 |
button = st.button("Generate text")
|
105 |
if button:
|
|
|
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?"
|
|
|
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")
|
107 |
button = st.button("Generate text")
|
108 |
if button:
|