Spaces:
Running
Running
ivyblossom
commited on
Commit
•
3dd11fc
1
Parent(s):
77fa7fb
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def main():
|
|
40 |
# Display the results as a table with a header row
|
41 |
table_data = [["Question", "Answer", "Score"]]
|
42 |
for i, (question, answer) in enumerate(zip(questions, answers)):
|
43 |
-
table_data.append([
|
44 |
|
45 |
st.write("Questions and Answers:")
|
46 |
st.table(table_data)
|
|
|
40 |
# Display the results as a table with a header row
|
41 |
table_data = [["Question", "Answer", "Score"]]
|
42 |
for i, (question, answer) in enumerate(zip(questions, answers)):
|
43 |
+
table_data.append([question, answer['answer'], f"{answer['score']:.2f}"])
|
44 |
|
45 |
st.write("Questions and Answers:")
|
46 |
st.table(table_data)
|