yoon-gu commited on
Commit
85a30f0
โ€ข
1 Parent(s): 96b316e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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