wwefih commited on
Commit
b268ba6
·
verified ·
1 Parent(s): 42121b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -110,4 +110,8 @@ def root():
110
 
111
  @app.post("/check")
112
  def check(data: StringInput):
113
- return check_answer(data.user_input, data.correct_word)
 
 
 
 
 
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