vmoras commited on
Commit
d87d318
1 Parent(s): 0126647

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- print("Request headers dictionary:", request.headers)
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