Spaces:
Sleeping
Sleeping
restrict to allowed list
Browse files
app.py
CHANGED
@@ -98,7 +98,12 @@ def respond(
|
|
98 |
context+=f"User: {interaction[0]}\nAssistant: {interaction[1]}\n"
|
99 |
context+=f"User: {user_message}" # include the latest message
|
100 |
print('calling function')
|
101 |
-
function_response = function_to_call(
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
# Step 4: send the info on the function call and function response to GPT
|
104 |
# include function call in history
|
|
|
98 |
context+=f"User: {interaction[0]}\nAssistant: {interaction[1]}\n"
|
99 |
context+=f"User: {user_message}" # include the latest message
|
100 |
print('calling function')
|
101 |
+
function_response = function_to_call(
|
102 |
+
context=context,
|
103 |
+
min_year=min_year,
|
104 |
+
max_year=max_year,
|
105 |
+
allowed_movies=allowed_movies,
|
106 |
+
)
|
107 |
|
108 |
# Step 4: send the info on the function call and function response to GPT
|
109 |
# include function call in history
|