botsi commited on
Commit
69461b8
·
verified ·
1 Parent(s): 02bb7c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -127,14 +127,13 @@ def generate(
127
  conversation = []
128
 
129
  # Fetch query params
130
- params = request.query_params
131
  print('those are the query params')
132
  print(params)
133
 
134
- if request:
135
- print("Request headers dictionary:", request.headers)
136
- print("IP address:", request.client.host)
137
- print("Query parameters:", dict(request.query_params))
138
 
139
  # Construct the input prompt using the functions from the system_prompt_config module
140
  input_prompt = construct_input_prompt(chat_history, message)
 
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)