Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ tab1, tab2 = st.tabs(["Question Summarization", "Question Classification"])
|
|
| 27 |
with tab1:
|
| 28 |
st.header("Question Summarization")
|
| 29 |
# Input text for summarization
|
| 30 |
-
text_to_summarize = st.text_area("Enter
|
| 31 |
if st.button("Summarize"):
|
| 32 |
if summarizer_loaded and text_to_summarize:
|
| 33 |
try:
|
|
@@ -43,7 +43,7 @@ with tab1:
|
|
| 43 |
with tab2:
|
| 44 |
st.header("Questions Classification")
|
| 45 |
# Input text for Question classification
|
| 46 |
-
text_to_classify = st.text_area("Enter
|
| 47 |
if st.button("Classify"):
|
| 48 |
if classifier_loaded and text_to_classify:
|
| 49 |
try:
|
|
|
|
| 27 |
with tab1:
|
| 28 |
st.header("Question Summarization")
|
| 29 |
# Input text for summarization
|
| 30 |
+
text_to_summarize = st.text_area("Enter long question to summarize:", "")
|
| 31 |
if st.button("Summarize"):
|
| 32 |
if summarizer_loaded and text_to_summarize:
|
| 33 |
try:
|
|
|
|
| 43 |
with tab2:
|
| 44 |
st.header("Questions Classification")
|
| 45 |
# Input text for Question classification
|
| 46 |
+
text_to_classify = st.text_area("Enter question to classify:", "")
|
| 47 |
if st.button("Classify"):
|
| 48 |
if classifier_loaded and text_to_classify:
|
| 49 |
try:
|