Kelvinhjk commited on
Commit
e9ea747
·
1 Parent(s): 9f9fce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -63,5 +63,9 @@ def QnAfunction(question):
63
  text = st.text_area("Ask any question about the Bachelor of Computer Science program at Swinburne: ")
64
  if text:
65
  ans, score = QnAfunction(text)
66
- st.write(ans)
 
 
 
 
67
 
 
63
  text = st.text_area("Ask any question about the Bachelor of Computer Science program at Swinburne: ")
64
  if text:
65
  ans, score = QnAfunction(text)
66
+ if score > 0.5:
67
+ st.write("Answer: ", ans)
68
+ st.write("Score: ", score)
69
+ else:
70
+ st.write(ans)
71