Commit
·
2de15d0
1
Parent(s):
1b22f97
Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,8 @@ def main():
|
|
51 |
st.subheader("Questions and Answers:")
|
52 |
for i, (question, answer) in enumerate(zip(questions, answers)):
|
53 |
st.write(f"Question {i + 1}: '{question}'")
|
54 |
-
st.write("Answer:", answer[
|
55 |
-
st.write(f"Score: {answer[
|
56 |
st.write("") # Add a new line after each answer
|
57 |
|
58 |
if __name__ == "__main__":
|
|
|
51 |
st.subheader("Questions and Answers:")
|
52 |
for i, (question, answer) in enumerate(zip(questions, answers)):
|
53 |
st.write(f"Question {i + 1}: '{question}'")
|
54 |
+
st.write("Answer:", answer['answer']) # Access the answer directly
|
55 |
+
st.write(f"Score: {answer['score']:.2f}") # Format the score to 2 decimal places
|
56 |
st.write("") # Add a new line after each answer
|
57 |
|
58 |
if __name__ == "__main__":
|