Spaces:
Runtime error
Runtime error
init
Browse files
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("
|
| 82 |
|
| 83 |
-
text = st.text_area("Enter
|
| 84 |
|
| 85 |
-
if st.button("Analyze"):
|
| 86 |
if text:
|
| 87 |
# Generate tags
|
| 88 |
tags = generate_tags(text)
|
| 89 |
-
st.subheader("
|
| 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("
|
| 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.")
|