Spaces:
Running
Running
Jeff Myers II
commited on
Commit
·
c281678
1
Parent(s):
e907e09
Completed Prototype
Browse files
app.py
CHANGED
@@ -249,8 +249,9 @@ with gr.Blocks() as demo:
|
|
249 |
evaluation += f"\n\t{i + 1}: Correct!"
|
250 |
else: evaluation += f"\n\t{i + 1}: Incorrect."
|
251 |
|
|
|
252 |
evaluation = f"You got {results} out of {len(answers)} correct.\n" + evaluation
|
253 |
-
|
254 |
if 0.9 <= results <= 1.0: evaluation = f"Excellent! " + evaluation
|
255 |
elif 0.8 <= results < 0.9: evaluation = f"Great job! " + evaluation
|
256 |
elif 0.7 <= results < 0.8: evaluation = f"Good effort! " + evaluation
|
|
|
249 |
evaluation += f"\n\t{i + 1}: Correct!"
|
250 |
else: evaluation += f"\n\t{i + 1}: Incorrect."
|
251 |
|
252 |
+
results /= len(answers)
|
253 |
evaluation = f"You got {results} out of {len(answers)} correct.\n" + evaluation
|
254 |
+
|
255 |
if 0.9 <= results <= 1.0: evaluation = f"Excellent! " + evaluation
|
256 |
elif 0.8 <= results < 0.9: evaluation = f"Great job! " + evaluation
|
257 |
elif 0.7 <= results < 0.8: evaluation = f"Good effort! " + evaluation
|