ivyblossom commited on
Commit
2de15d0
·
1 Parent(s): 1b22f97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[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__":
 
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__":