Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def user(user_message, history):
|
|
60 |
def bot(history, messages_history, system_prompt, teksti_contexti, temperature, max_tokens, chatgpt_model, max_context_size_for_question):
|
61 |
user_message = history[-1][0]
|
62 |
|
63 |
-
bot_message, messages_history = ask_gpt(user_message, messages_history, system_prompt, teksti_contexti, temperature, max_tokens,chatgpt_model)
|
64 |
messages_history += [{"role": "assistant", "content": bot_message}]
|
65 |
history[-1][1] = bot_message
|
66 |
time.sleep(0.2)
|
|
|
60 |
def bot(history, messages_history, system_prompt, teksti_contexti, temperature, max_tokens, chatgpt_model, max_context_size_for_question):
|
61 |
user_message = history[-1][0]
|
62 |
|
63 |
+
bot_message, messages_history = ask_gpt(user_message, messages_history, system_prompt, teksti_contexti, temperature, max_tokens,chatgpt_model, max_context_size_for_question)
|
64 |
messages_history += [{"role": "assistant", "content": bot_message}]
|
65 |
history[-1][1] = bot_message
|
66 |
time.sleep(0.2)
|