yoon-gu commited on
Commit
6d78cad
ยท
1 Parent(s): 55c3782

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ with gr.Blocks() as demo:
16
  clear = gr.ClearButton([msg, chatbot])
17
 
18
 
19
- def respond(message, chat_history):
 
20
  if "ํ€ด์ฆˆ ์‹œ์ž‘" == message:
21
  bot_message = "ํ€ด์ฆˆ๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.\n" + QUESTION_TEMPLATE["question"].format(img_url=img_url)
22
  quiz_start.value = True
 
16
  clear = gr.ClearButton([msg, chatbot])
17
 
18
 
19
+ def respond(message, chat_history, request: gr.Request):
20
+ print(request.client.host)
21
  if "ํ€ด์ฆˆ ์‹œ์ž‘" == message:
22
  bot_message = "ํ€ด์ฆˆ๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.\n" + QUESTION_TEMPLATE["question"].format(img_url=img_url)
23
  quiz_start.value = True