Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from PIL import Image
|
|
| 5 |
|
| 6 |
def predict(imgs, garm_img):
|
| 7 |
print(imgs, garm_img)
|
| 8 |
-
client = Client("life4cut/ff-v1", hf_token=HF_TOKEN_FF)
|
| 9 |
result = client.predict(
|
| 10 |
#dict={"background":handle_file('https://s3.ap-northeast-2.amazonaws.com/life4cut.app/images/temp/111.png'),"layers":[],"composite":None},
|
| 11 |
#garm_img=handle_file('https://s3.ap-northeast-2.amazonaws.com/life4cut.app/images/temp/00_style5.png'),
|
|
|
|
| 5 |
|
| 6 |
def predict(imgs, garm_img):
|
| 7 |
print(imgs, garm_img)
|
| 8 |
+
client = Client("life4cut/ff-v1", hf_token=os.environ.get('HF_TOKEN_FF'))
|
| 9 |
result = client.predict(
|
| 10 |
#dict={"background":handle_file('https://s3.ap-northeast-2.amazonaws.com/life4cut.app/images/temp/111.png'),"layers":[],"composite":None},
|
| 11 |
#garm_img=handle_file('https://s3.ap-northeast-2.amazonaws.com/life4cut.app/images/temp/00_style5.png'),
|