Yoon-gu Hwang commited on
Commit
716cd4d
1 Parent(s): 37ab76b

strip 추가

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -79,6 +79,7 @@ with gr.Blocks() as demo:
79
  msg = gr.Textbox(placeholder="문제의 답을 입력하세요.", label="답")
80
 
81
  def respond(message, chat_history, user, quiz_count, gen, types, request: gr.Request):
 
82
  done = info[user]['done']
83
  start, end = GEN_RANGE[gen]
84
  sdf = df[start:end]
 
79
  msg = gr.Textbox(placeholder="문제의 답을 입력하세요.", label="답")
80
 
81
  def respond(message, chat_history, user, quiz_count, gen, types, request: gr.Request):
82
+ message = message.strip()
83
  done = info[user]['done']
84
  start, end = GEN_RANGE[gen]
85
  sdf = df[start:end]