xu-song commited on
Commit
9dfa838
1 Parent(s): 614012d
Files changed (1) hide show
  1. util.py +1 -1
util.py CHANGED
@@ -71,7 +71,7 @@ def tokenize_pair(text, tokenizer_type_1, tokenizer_type_2, request: gr.Request)
71
  if headers and 'x-forwarded-for' in headers:
72
  x_forwarded_for = headers['x-forwarded-for']
73
  client_ip = x_forwarded_for.split(' ')[0] if x_forwarded_for else ""
74
- logger.info("[client ip]", client_ip, tokenizer_type_1, tokenizer_type_2)
75
 
76
  pos_tokens_1, table_df_1 = tokenize(text, tokenizer_type_1)
77
  pos_tokens_2, table_df_2 = tokenize(text, tokenizer_type_2)
 
71
  if headers and 'x-forwarded-for' in headers:
72
  x_forwarded_for = headers['x-forwarded-for']
73
  client_ip = x_forwarded_for.split(' ')[0] if x_forwarded_for else ""
74
+ logger.info(f"[client_ip]: {client_ip}, {tokenizer_type_1}, {tokenizer_type_2}")
75
 
76
  pos_tokens_1, table_df_1 = tokenize(text, tokenizer_type_1)
77
  pos_tokens_2, table_df_2 = tokenize(text, tokenizer_type_2)