xu-song commited on
Commit
8ba122d
1 Parent(s): 9495a4f
Files changed (1) hide show
  1. util.py +1 -0
util.py CHANGED
@@ -118,6 +118,7 @@ def on_load(request: gr.Request):
118
  tokenizer_type_2 = None
119
  query_params = {}
120
  if request:
 
121
  client_ip = request.client.host
122
  # local_ip = socket.gethostbyname(socket.gethostbyname(""))
123
  # headers = request.kwargs['headers']
 
118
  tokenizer_type_2 = None
119
  query_params = {}
120
  if request:
121
+ logger.info(str(request.headers))
122
  client_ip = request.client.host
123
  # local_ip = socket.gethostbyname(socket.gethostbyname(""))
124
  # headers = request.kwargs['headers']