leek2 commited on
Commit
ef97db7
1 Parent(s): 6f4239f

restrict to allowed list

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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(context=context, min_year=min_year, max_year=max_year)
 
 
 
 
 
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