lqqqqqqqqq commited on
Commit
e18cd1b
1 Parent(s): ccc3eca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -42,12 +42,14 @@ summarizer_path = "lqqqqqqqqq/SummarizeModelGr9"
42
  combined_model = CombinedModel.from_pretrained(classifier_path, summarizer_path)
43
 
44
  # Streamlit application title
45
- st.title("Text Classification and Summarization")
46
  st.write("Classification for 3 labels: negative, neutral, positive")
 
47
 
48
  # Text input for user to enter the text to classify
49
  texts_input = st.text_area("Enter the texts to classify and summarize (one text per line)", "")
50
 
 
51
  # Perform text classification and summarization when the user clicks the "Classify" button
52
  if st.button("Classify"):
53
  texts = texts_input.split('\n')
@@ -64,4 +66,4 @@ if st.button("Classify"):
64
  st.write("Summary:", summary)
65
  st.write("---")
66
  else:
67
- st.write("Please enter some text to classify and summarize.")
 
42
  combined_model = CombinedModel.from_pretrained(classifier_path, summarizer_path)
43
 
44
  # Streamlit application title
45
+ st.title("Twitter Text Classification and Summarization")
46
  st.write("Classification for 3 labels: negative, neutral, positive")
47
+ st.markdown("Please enter at least 50 words & more than 4 sentences for better summarization")
48
 
49
  # Text input for user to enter the text to classify
50
  texts_input = st.text_area("Enter the texts to classify and summarize (one text per line)", "")
51
 
52
+
53
  # Perform text classification and summarization when the user clicks the "Classify" button
54
  if st.button("Classify"):
55
  texts = texts_input.split('\n')
 
66
  st.write("Summary:", summary)
67
  st.write("---")
68
  else:
69
+ st.write("Please enter some text(more than 4 sentences) to classify and summarize.")