Spaces:
Runtime error
Runtime error
update
Browse files
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
|
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
|
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:
|