Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|