Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,46 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|
25 |
from sklearn.metrics.pairwise import cosine_similarity
|
26 |
import tempfile
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
txt = st.text_area("Job description", key = "text 1")
|
29 |
job = pd.Series(txt, name="Text")
|
30 |
st.dataframe(job)
|
@@ -39,6 +79,7 @@ for uploaded_file in uploaded_files:
|
|
39 |
text_data += page.extract_text()
|
40 |
data = pd.Series(text_data, name = 'Text')
|
41 |
st.dataframe(data)
|
|
|
42 |
frames = [job, data]
|
43 |
result = pd.concat(frames)
|
44 |
st.dataframe(result)
|
@@ -77,6 +118,7 @@ for uploaded_file in uploaded_files:
|
|
77 |
st.dataframe(cosine_sim_df)
|
78 |
|
79 |
import plotly.express as px
|
|
|
80 |
|
81 |
fig = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Cosine similarity", y="Text", color="Productivity"),
|
82 |
x=['text1', 'Jon Description'],
|
|
|
25 |
from sklearn.metrics.pairwise import cosine_similarity
|
26 |
import tempfile
|
27 |
|
28 |
+
with st.sidebar:
|
29 |
+
st.button("DEMO APP", type="primary")
|
30 |
+
|
31 |
+
|
32 |
+
expander = st.expander("**Important notes on the YouTube Comments Sentiment Analysis App**")
|
33 |
+
expander.write('''
|
34 |
+
|
35 |
+
|
36 |
+
**Supported File Formats**
|
37 |
+
This app accepts files in .pdf formats.
|
38 |
+
|
39 |
+
**How to Use**
|
40 |
+
Upload your file first. Then, click the 'Results' button.
|
41 |
+
|
42 |
+
**Usage Limits**
|
43 |
+
You can request results up to 5 times.
|
44 |
+
|
45 |
+
**Subscription Management**
|
46 |
+
This demo app offers a one-day subscription, expiring after 24 hours. If you are interested in building your own Named Entity Recognition (NER) Web App, we invite you to explore our NLP Web App Store on our website. You can select your desired features, place your order, and we will deliver your custom app within five business days. If you wish to delete your Account with us, please contact us at [email protected]
|
47 |
+
|
48 |
+
**Authorization**
|
49 |
+
For security purposes, your authorization access expires hourly. To restore access, click the "Request Authorization" button.
|
50 |
+
|
51 |
+
**Customization**
|
52 |
+
To change the app's background color to white or black, click the three-dot menu on the right-hand side of your app, go to Settings and then Choose app theme, colors and fonts.
|
53 |
+
|
54 |
+
**File Handling and Errors**
|
55 |
+
The app may display an error message if your file is corrupt, or has other errors.
|
56 |
+
|
57 |
+
|
58 |
+
For any errors or inquiries, please contact us at [email protected]
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
''')
|
63 |
+
|
64 |
+
|
65 |
+
|
66 |
+
st.subheader("AI Resume Analysis based on keywords", divider="red")
|
67 |
+
|
68 |
txt = st.text_area("Job description", key = "text 1")
|
69 |
job = pd.Series(txt, name="Text")
|
70 |
st.dataframe(job)
|
|
|
79 |
text_data += page.extract_text()
|
80 |
data = pd.Series(text_data, name = 'Text')
|
81 |
st.dataframe(data)
|
82 |
+
st.text_area("Extracted Text", data, height=200)
|
83 |
frames = [job, data]
|
84 |
result = pd.concat(frames)
|
85 |
st.dataframe(result)
|
|
|
118 |
st.dataframe(cosine_sim_df)
|
119 |
|
120 |
import plotly.express as px
|
121 |
+
st.subheader("A score closer to 1 means closer match")
|
122 |
|
123 |
fig = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Cosine similarity", y="Text", color="Productivity"),
|
124 |
x=['text1', 'Jon Description'],
|