Spaces:
Sleeping
Sleeping
abrakjamson
commited on
Commit
·
1eb09b2
1
Parent(s):
95b2105
Initial history handling
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def toggle_slider(checked):
|
|
46 |
return gr.update(visible=checked)
|
47 |
|
48 |
# Function to generate the model's response
|
49 |
-
def generate_response(system_prompt, user_message, *args, history):
|
50 |
# args contains alternating checkbox and slider values
|
51 |
num_controls = len(control_vector_files)
|
52 |
checkboxes = args[0::2] # Extract every first item in each pair
|
|
|
46 |
return gr.update(visible=checked)
|
47 |
|
48 |
# Function to generate the model's response
|
49 |
+
def generate_response(system_prompt, user_message, *args, history=None):
|
50 |
# args contains alternating checkbox and slider values
|
51 |
num_controls = len(control_vector_files)
|
52 |
checkboxes = args[0::2] # Extract every first item in each pair
|