Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,6 @@ with gr.Blocks() as demo:
|
|
18 |
|
19 |
def respond(message, chat_history, request: gr.Request):
|
20 |
print(request.client.host)
|
21 |
-
if "ํด์ฆ ์์" == message:
|
22 |
-
quiz_start.value = True
|
23 |
if not quiz_start.value:
|
24 |
chosen = random.choice(pokemons)
|
25 |
name = chosen['name']
|
@@ -44,7 +42,7 @@ with gr.Blocks() as demo:
|
|
44 |
trial = Josa.get_full_string(message, "๋")
|
45 |
except pyjosa.exceptions.NotHangleException:
|
46 |
trial = f"{message}!?"
|
47 |
-
bot_message = f"***{trial}*** ์ ๋ต์ผ๊น์? ๐ง ๋ค์ ํ๋ฒ ์๊ฐํด๋ณด์ธ์."
|
48 |
|
49 |
chat_history.append((message, bot_message))
|
50 |
return "", chat_history
|
|
|
18 |
|
19 |
def respond(message, chat_history, request: gr.Request):
|
20 |
print(request.client.host)
|
|
|
|
|
21 |
if not quiz_start.value:
|
22 |
chosen = random.choice(pokemons)
|
23 |
name = chosen['name']
|
|
|
42 |
trial = Josa.get_full_string(message, "๋")
|
43 |
except pyjosa.exceptions.NotHangleException:
|
44 |
trial = f"{message}!?"
|
45 |
+
bot_message = f"***{trial[:-1]}***{trial[-1]} ์ ๋ต์ผ๊น์? ๐ง ๋ค์ ํ๋ฒ ์๊ฐํด๋ณด์ธ์."
|
46 |
|
47 |
chat_history.append((message, bot_message))
|
48 |
return "", chat_history
|