wavesoumen commited on
Commit
0170d5c
1 Parent(s): 92ae837
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -78,33 +78,33 @@ def extract_point_of_view(text):
78
  return point_of_view
79
 
80
  # Streamlit application
81
- st.title("Text Analysis Application")
82
 
83
- text = st.text_area("Enter your text here:")
84
 
85
- if st.button("Analyze"):
86
  if text:
87
  # Generate tags
88
  tags = generate_tags(text)
89
- st.subheader("Generated Tags")
90
  st.write(tags)
91
 
92
  # Generate summaries
93
  summary1 = generate_summary(text, 'summary: ')
94
  summary2 = generate_summary(text, 'summary brief: ')
95
- st.subheader("Summary 1")
96
  st.write(summary1)
97
- st.subheader("Summary 2")
98
  st.write(summary2)
99
 
100
  # Generate hashtags
101
  hashtags = generate_hashtags(text)
102
- st.subheader("Generated Hashtags")
103
  st.write(hashtags)
104
 
105
  # Extract point of view
106
  point_of_view = extract_point_of_view(text)
107
- st.subheader("Point of View")
108
  st.write(point_of_view)
109
  else:
110
  st.warning("Please enter text to analyze.")
 
78
  return point_of_view
79
 
80
  # Streamlit application
81
+ st.title("LinkedIn Post Analysis AI")
82
 
83
+ text = st.text_area("Enter the LinkedIn Post:")
84
 
85
+ if st.button("Analyze:"):
86
  if text:
87
  # Generate tags
88
  tags = generate_tags(text)
89
+ st.subheader("The Most Tracked KeyWords:")
90
  st.write(tags)
91
 
92
  # Generate summaries
93
  summary1 = generate_summary(text, 'summary: ')
94
  summary2 = generate_summary(text, 'summary brief: ')
95
+ st.subheader("Summary Title 1:")
96
  st.write(summary1)
97
+ st.subheader("Summary Title 2:")
98
  st.write(summary2)
99
 
100
  # Generate hashtags
101
  hashtags = generate_hashtags(text)
102
+ st.subheader("Generated Hashtags for the Post")
103
  st.write(hashtags)
104
 
105
  # Extract point of view
106
  point_of_view = extract_point_of_view(text)
107
+ st.subheader("Tone of the Post:")
108
  st.write(point_of_view)
109
  else:
110
  st.warning("Please enter text to analyze.")