Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
#python generate_feedback.py <file name>
|
5 |
-
|
6 |
-
|
7 |
import openai
|
8 |
from dotenv import load_dotenv
|
9 |
import os
|
10 |
import sys
|
|
|
11 |
load_dotenv()
|
12 |
|
13 |
openai.api_key = os.environ.get("OPENAI_API_KEY")
|
14 |
-
file_name=sys.argv[1]
|
15 |
|
16 |
def get_chat_completion(iContent):
|
17 |
conv_list=[{"role":"system", "content":f'''You are the world's best interviewer. The model will be given an interview transcript between interviewer and candidate. Based on job profile given in the title, evaluate candidate and rate the candidate on communications ,technical skills, practical skills and attitude. Give the answer in points and describe each point with the rating. For eg:
|
@@ -36,7 +31,7 @@ Give Overall rating and verdict for if the candidate has to be considered for ne
|
|
36 |
|
37 |
|
38 |
if __name__=="__main__":
|
39 |
-
iContent=st.text_area()
|
40 |
answer= get_chat_completion(iContent)
|
41 |
json_answer={'feedback':answer}
|
42 |
st.json(json_answer)
|
|
|
1 |
+
import streamlit as lt
|
|
|
|
|
|
|
|
|
|
|
2 |
import openai
|
3 |
from dotenv import load_dotenv
|
4 |
import os
|
5 |
import sys
|
6 |
+
|
7 |
load_dotenv()
|
8 |
|
9 |
openai.api_key = os.environ.get("OPENAI_API_KEY")
|
|
|
10 |
|
11 |
def get_chat_completion(iContent):
|
12 |
conv_list=[{"role":"system", "content":f'''You are the world's best interviewer. The model will be given an interview transcript between interviewer and candidate. Based on job profile given in the title, evaluate candidate and rate the candidate on communications ,technical skills, practical skills and attitude. Give the answer in points and describe each point with the rating. For eg:
|
|
|
31 |
|
32 |
|
33 |
if __name__=="__main__":
|
34 |
+
iContent=st.text_area("Enter Transcript")
|
35 |
answer= get_chat_completion(iContent)
|
36 |
json_answer={'feedback':answer}
|
37 |
st.json(json_answer)
|