Spaces:
Running
Running
KonstantinosKakkavas
commited on
Commit
•
ae9f7ef
1
Parent(s):
8a532ab
Update app.py
Browse files
app.py
CHANGED
@@ -1,37 +1,16 @@
|
|
1 |
-
#
|
2 |
-
#Once you have Streamlit installed, you can import it into your Python script using the import statement,
|
3 |
-
|
4 |
import streamlit as st
|
5 |
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
llm = OpenAI(model_name="text-davinci-003",temperature=0)
|
12 |
-
answer=llm(question)
|
13 |
-
return answer
|
14 |
-
|
15 |
-
|
16 |
-
#App UI starts here
|
17 |
-
st.set_page_config(page_title="LangChain Demo", page_icon=":robot:")
|
18 |
-
st.header("LangChain Demo")
|
19 |
-
|
20 |
-
#Gets the user input
|
21 |
-
def get_text():
|
22 |
-
input_text = st.text_input("You: ", key="input")
|
23 |
-
return input_text
|
24 |
-
|
25 |
-
|
26 |
-
user_input=get_text()
|
27 |
-
response = load_answer(user_input)
|
28 |
-
|
29 |
-
submit = st.button('Generate')
|
30 |
-
|
31 |
-
#If generate button is clicked
|
32 |
-
if submit:
|
33 |
|
34 |
-
st.
|
|
|
35 |
|
36 |
-
|
|
|
37 |
|
|
|
|
1 |
+
# Application that will help the Resume Screener will llms to find the best fits for the job
|
|
|
|
|
2 |
import streamlit as st
|
3 |
|
4 |
|
5 |
+
def main():
|
6 |
+
st.set_page_config(page_title="Resume Screening Assistance")
|
7 |
+
st.title('HR Resume Screening Assistance')
|
8 |
+
st.subheader('I can help you in resume screening process')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
+
job_description = st.text_area("Enter your job description", key="1")
|
11 |
+
document_count = st.text_area("No.of 'Resumes' to return", key="2")
|
12 |
|
13 |
+
# Upload the Resumes (pdf files)
|
14 |
+
pdf = st.file_uploader("Upload resumes here, only PDF files allowed", type=["pdf"], accept_multiple_files=True)
|
15 |
|
16 |
+
submit_button = st.button("Help me with the analysis")
|