VjPower commited on
Commit
524a4fb
·
1 Parent(s): cb91f38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -32,23 +32,20 @@ Give Overall rating and verdict for if the candidate has to be considered for ne
32
 
33
  if __name__=="__main__":
34
  iContent=st.text_area("Enter Transcript")
35
- answer=str
36
  uploaded_file = st.file_uploader("Upload a file", type=["txt", "docx"])
37
 
38
  if iContent and uploaded_file:
39
  content= uploaded_file.read()
40
  st.code(content, language="txt")
41
  answer= get_chat_completion(content)
 
42
  elif iContent:
43
  answer= get_chat_completion(iContent)
 
44
  elif uploaded_file:
45
  content= uploaded_file.read()
46
  st.code(content, language="txt")
47
- answer= get_chat_completion(content)
48
-
49
- if answer:
50
- json_answer={'feedback':answer}
51
- st.json(json_answer)
52
 
53
 
54
 
 
32
 
33
  if __name__=="__main__":
34
  iContent=st.text_area("Enter Transcript")
 
35
  uploaded_file = st.file_uploader("Upload a file", type=["txt", "docx"])
36
 
37
  if iContent and uploaded_file:
38
  content= uploaded_file.read()
39
  st.code(content, language="txt")
40
  answer= get_chat_completion(content)
41
+ st.json({'feedback':get_chat_completion(content)})
42
  elif iContent:
43
  answer= get_chat_completion(iContent)
44
+ st.json({'feedback':get_chat_completion(content)})
45
  elif uploaded_file:
46
  content= uploaded_file.read()
47
  st.code(content, language="txt")
48
+ st.json({'feedback':get_chat_completion(content)})
 
 
 
 
49
 
50
 
51