Spaces:
Running
Running
adjust css
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ tryon_css="""
|
|
| 26 |
max-width: 1000px;
|
| 27 |
}
|
| 28 |
#button {
|
| 29 |
-
color: #A47764;
|
|
|
|
| 30 |
}
|
| 31 |
"""
|
| 32 |
|
|
@@ -51,7 +52,8 @@ def call_tryon_api(person_file, garm_file, category, model_type='SD_V1'):
|
|
| 51 |
payload = {'garment_type': category, 'model_type': model_type, 'repaint_other_garment': 'false'}
|
| 52 |
files = {
|
| 53 |
'image_garment_file': open(garm_file, 'rb'),
|
| 54 |
-
'image_model_file': open(person_file, 'rb'),
|
|
|
|
| 55 |
headers = {
|
| 56 |
'x-api-key': os.environ['API_KEY']
|
| 57 |
}
|
|
|
|
| 26 |
max-width: 1000px;
|
| 27 |
}
|
| 28 |
#button {
|
| 29 |
+
background-color: #A47764;
|
| 30 |
+
color: white;
|
| 31 |
}
|
| 32 |
"""
|
| 33 |
|
|
|
|
| 52 |
payload = {'garment_type': category, 'model_type': model_type, 'repaint_other_garment': 'false'}
|
| 53 |
files = {
|
| 54 |
'image_garment_file': open(garm_file, 'rb'),
|
| 55 |
+
'image_model_file': open(person_file, 'rb'),
|
| 56 |
+
}
|
| 57 |
headers = {
|
| 58 |
'x-api-key': os.environ['API_KEY']
|
| 59 |
}
|