botsi commited on
Commit
765b3bd
·
verified ·
1 Parent(s): 69461b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -127,13 +127,13 @@ def generate(
127
  conversation = []
128
 
129
  # Fetch query params
130
- params = dict(request.query_params)
131
  print('those are the query params')
132
  print(params)
133
 
134
  print("Request headers dictionary:", request.headers)
135
  print("IP address:", request.client.host)
136
- print("Query parameters:", dict(request.query_params))
137
 
138
  # Construct the input prompt using the functions from the system_prompt_config module
139
  input_prompt = construct_input_prompt(chat_history, message)
 
127
  conversation = []
128
 
129
  # Fetch query params
130
+ params = {key: value for key, value in request.query_params.items()}
131
  print('those are the query params')
132
  print(params)
133
 
134
  print("Request headers dictionary:", request.headers)
135
  print("IP address:", request.client.host)
136
+ print("Query parameters:", params))
137
 
138
  # Construct the input prompt using the functions from the system_prompt_config module
139
  input_prompt = construct_input_prompt(chat_history, message)