Brasd99 commited on
Commit
87653fe
1 Parent(s): dd19e3f

Added logging

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,7 +5,9 @@ import subprocess
5
  subprocess.call(['pip', 'install', 'git+https://github.com/facebookresearch/detectron2@main#subdirectory=projects/DensePose'])
6
  from helpers.processor import TextureProcessor
7
 
8
- def image_processing(person_img, model_img):
 
 
9
  return texture_processor.extract(person_img, model_img)
10
 
11
  def load_model(current_path):
 
5
  subprocess.call(['pip', 'install', 'git+https://github.com/facebookresearch/detectron2@main#subdirectory=projects/DensePose'])
6
  from helpers.processor import TextureProcessor
7
 
8
+ def image_processing(person_img, model_img, request: gr.Request):
9
+ if request:
10
+ print("IP address: ", request.client.host)
11
  return texture_processor.extract(person_img, model_img)
12
 
13
  def load_model(current_path):