sim-so commited on
Commit
e6b75fb
Β·
1 Parent(s): 1f96bc8
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -105,13 +105,11 @@ with gr.Blocks() as demo:
105
  def greet():
106
  return "", [("[START]", "γ‚²γƒΌγƒ γ‚’ε§‹γΎγ‚ŠγΎγ™οΌε₯½γγͺ言葉をひと぀だけいってみてください。")]
107
 
108
- def respond(key, user_input, chat_history, cur):
109
  reply = create_chat(key, user_input)
110
- if isinstance(reply["content"], list):
111
- cur = reply["content"]
112
  chatbot.append((user_input, reply["content"]))
113
  time.sleep(2)
114
- return "", chatbot, cur
115
 
116
  def update_guesses(cur, i, guessed_words, guesses_df):
117
  if cur[0] not in guessed_words:
 
105
  def greet():
106
  return "", [("[START]", "γ‚²γƒΌγƒ γ‚’ε§‹γΎγ‚ŠγΎγ™οΌε₯½γγͺ言葉をひと぀だけいってみてください。")]
107
 
108
+ def respond(key, user_input):
109
  reply = create_chat(key, user_input)
 
 
110
  chatbot.append((user_input, reply["content"]))
111
  time.sleep(2)
112
+ return "", chatbot
113
 
114
  def update_guesses(cur, i, guessed_words, guesses_df):
115
  if cur[0] not in guessed_words: