Update app.py
Browse files
app.py
CHANGED
|
@@ -110,4 +110,8 @@ def root():
|
|
| 110 |
|
| 111 |
@app.post("/check")
|
| 112 |
def check(data: StringInput):
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
@app.post("/check")
|
| 112 |
def check(data: StringInput):
|
| 113 |
+
# ログに記録
|
| 114 |
+
print(f"受信: user_input='{data.user_input}' / correct_word='{data.correct_word}'")
|
| 115 |
+
result = check_answer(data.user_input, data.correct_word)
|
| 116 |
+
print(f"結果: {result}")
|
| 117 |
+
return result
|