Update app.py
Browse files
app.py
CHANGED
@@ -83,6 +83,8 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
83 |
history[-1] = partial_words
|
84 |
token_counter += 1
|
85 |
yield [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2)], history, chat_counter, "200", gr.update(interactive=False), gr.update(interactive=False)
|
|
|
|
|
86 |
|
87 |
except Exception as e:
|
88 |
print(f'OpenAI API error: {e}')
|
|
|
83 |
history[-1] = partial_words
|
84 |
token_counter += 1
|
85 |
yield [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2)], history, chat_counter, "200", gr.update(interactive=False), gr.update(interactive=False)
|
86 |
+
|
87 |
+
yield [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2)], history, chat_counter, "200", gr.update(interactive=True), gr.update(interactive=True)
|
88 |
|
89 |
except Exception as e:
|
90 |
print(f'OpenAI API error: {e}')
|