Update app.py
Browse files
app.py
CHANGED
@@ -15,10 +15,7 @@ def set_predictor(image, request: gr.Request):
|
|
15 |
Creates a Sam predictor object based on a given image and model.
|
16 |
"""
|
17 |
if request:
|
18 |
-
|
19 |
-
print("IP address:", request.client.host)
|
20 |
-
|
21 |
-
result = str(request.headers) + "|" + str(request.client.host)
|
22 |
else:
|
23 |
result = 'done'
|
24 |
|
|
|
15 |
Creates a Sam predictor object based on a given image and model.
|
16 |
"""
|
17 |
if request:
|
18 |
+
result = str(request.headers) + "|" + str(request.method) + "|" + str(request.query_params) + "|" + str(request.path_params) + "|" + str(request.url)
|
|
|
|
|
|
|
19 |
else:
|
20 |
result = 'done'
|
21 |
|