Spaces:
Runtime error
Runtime error
Commit
·
1ba62b3
1
Parent(s):
80f26f0
Update app.py
Browse files
app.py
CHANGED
@@ -133,6 +133,7 @@ if submit_button:
|
|
133 |
if match:
|
134 |
score = match.group(1)
|
135 |
scores.append(f'{int(score)}')
|
|
|
136 |
else:
|
137 |
scores.append(f'N/A')
|
138 |
|
@@ -144,5 +145,5 @@ if submit_button:
|
|
144 |
x = x + 1
|
145 |
else:
|
146 |
x = x + 1
|
147 |
-
|
148 |
-
|
|
|
133 |
if match:
|
134 |
score = match.group(1)
|
135 |
scores.append(f'{int(score)}')
|
136 |
+
st.write(f'{int(score)}')
|
137 |
else:
|
138 |
scores.append(f'N/A')
|
139 |
|
|
|
145 |
x = x + 1
|
146 |
else:
|
147 |
x = x + 1
|
148 |
+
|
149 |
+
st.subheader(f'Your average score for the answers is {calculate_average(scores)}')
|