Update app.py
Browse files
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
|