Dooratre commited on
Commit
7399121
1 Parent(s): 0e5a658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -58,7 +58,8 @@ def get_tryon_result(model_name, garment1, garment2, seed=1234):
58
  else:
59
  encoded_garment2 = ''
60
 
61
- url = os.environ['OA_IP_ADDRESS']
 
62
  headers = {'Content-Type': 'application/json'}
63
  seed = random.randint(0, 1222222222)
64
  data = {
 
58
  else:
59
  encoded_garment2 = ''
60
 
61
+ host_ip = socket.gethostbyname(socket.gethostname())
62
+ url = f"https://{host_ip}:8443" # Replace 'your_port_here' with the appropriate port number
63
  headers = {'Content-Type': 'application/json'}
64
  seed = random.randint(0, 1222222222)
65
  data = {