aljun5 commited on
Commit
dc0a2ed
·
verified ·
1 Parent(s): fea62e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -85,8 +85,7 @@ def get_tryon_result(model_name, garment1, garment2, seed=1234):
85
 
86
 
87
  try:
88
- base_url = "https://www.outfitanyone.life/api/tryon"
89
- api_key = os.environ.get("OA_IP_ADDRESS") # reads your key from Hugging Face secrets
90
  except KeyError:
91
  print("Error: OA_IP_ADDRESS environment variable not set!")
92
  # return a dummy image instead of crashing
@@ -96,8 +95,7 @@ def get_tryon_result(model_name, garment1, garment2, seed=1234):
96
  return add_waterprint(dummy_img)
97
 
98
  headers = {
99
- 'Content-Type': 'application/json',
100
- 'Authorization': f'Bearer {ak_l0YMrBxXgd4KmyyychTYIhE3KgbxYJgGqLLpYrjzgvxeWxV2YAFNHuCCmAVJh}' # add your key here
101
  }
102
 
103
  seed = random.randint(0, 1222222222)
 
85
 
86
 
87
  try:
88
+ url = = os.environ.get("OA_IP_ADDRESS") # reads your key from Hugging Face secrets
 
89
  except KeyError:
90
  print("Error: OA_IP_ADDRESS environment variable not set!")
91
  # return a dummy image instead of crashing
 
95
  return add_waterprint(dummy_img)
96
 
97
  headers = {
98
+ 'Content-Type': 'application/json'
 
99
  }
100
 
101
  seed = random.randint(0, 1222222222)