Commit
·
1b22f97
1
Parent(s):
8cf0fcf
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['answer'])
|
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__":
|
|
|
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[0]['answer']) # Access the answer from the first dictionary
|
55 |
+
st.write(f"Score: {answer[0]['score']:.2f}") # Format the score to 2 decimal places
|
56 |
st.write("") # Add a new line after each answer
|
57 |
|
58 |
if __name__ == "__main__":
|