Update app.py
Browse files
app.py
CHANGED
|
@@ -127,13 +127,13 @@ def generate(
|
|
| 127 |
conversation = []
|
| 128 |
|
| 129 |
# Fetch query params
|
| 130 |
-
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:",
|
| 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)
|