Spaces:
Running
Running
update
Browse files
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("[
|
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)
|