Spaces:
Running
Running
Initialise messages
Browse files
app.py
CHANGED
@@ -25,6 +25,9 @@ def get_inference_client(selected_model):
|
|
25 |
# Function to get a response from the chatbot
|
26 |
def get_response(user_input, history, selected_model, system_prompt, temperature, max_tokens, top_p):
|
27 |
client = get_inference_client(selected_model)
|
|
|
|
|
|
|
28 |
|
29 |
# Add system message, if not empty
|
30 |
if (len(system_prompt)) > 0:
|
|
|
25 |
# Function to get a response from the chatbot
|
26 |
def get_response(user_input, history, selected_model, system_prompt, temperature, max_tokens, top_p):
|
27 |
client = get_inference_client(selected_model)
|
28 |
+
|
29 |
+
# messaages
|
30 |
+
messages = []
|
31 |
|
32 |
# Add system message, if not empty
|
33 |
if (len(system_prompt)) > 0:
|