VjPower commited on
Commit
70ca332
·
1 Parent(s): 104daa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -32,7 +32,7 @@ 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
-
36
  uploaded_file = st.file_uploader("Upload a file", type=["txt", "docx"])
37
 
38
  if iContent and uploaded_file:
@@ -45,9 +45,10 @@ if __name__=="__main__":
45
  content= uploaded_file.read()
46
  st.code(file_contents, language="txt")
47
  answer= get_chat_completion(content)
48
-
49
- json_answer={'feedback':answer}
50
- st.json(json_answer)
 
51
 
52
 
53
 
 
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:
 
45
  content= uploaded_file.read()
46
  st.code(file_contents, 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