burtenshaw
commited on
Commit
·
b3deced
1
Parent(s):
136f08a
tidy output
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def check_code(
|
|
94 |
is_correct = response.upper().startswith("CORRECT")
|
95 |
|
96 |
# Add the explanation to the status text with emoji
|
97 |
-
explanation = response.
|
98 |
status = "✅ Correct!" if is_correct else "❌ Incorrect!" + f"\n\n{explanation}"
|
99 |
gr.Info(f"{status}\n\n{explanation}")
|
100 |
|
|
|
94 |
is_correct = response.upper().startswith("CORRECT")
|
95 |
|
96 |
# Add the explanation to the status text with emoji
|
97 |
+
explanation = response.split("CORRECT")[1]
|
98 |
status = "✅ Correct!" if is_correct else "❌ Incorrect!" + f"\n\n{explanation}"
|
99 |
gr.Info(f"{status}\n\n{explanation}")
|
100 |
|