Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,6 +126,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
|
|
| 126 |
chatbot[-1] = (history[-2], history[-1])
|
| 127 |
# chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
|
| 128 |
token_counter += 1
|
|
|
|
| 129 |
# resembles {chatbot: chat, state: history}
|
| 130 |
yield chatbot, history
|
| 131 |
|
|
|
|
| 126 |
chatbot[-1] = (history[-2], history[-1])
|
| 127 |
# chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
|
| 128 |
token_counter += 1
|
| 129 |
+
print(chatbot)
|
| 130 |
# resembles {chatbot: chat, state: history}
|
| 131 |
yield chatbot, history
|
| 132 |
|