Spaces:
Running
Running
debug
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ person_list_path = [os.path.join(example_path, "person", person) for person in p
|
|
| 15 |
|
| 16 |
|
| 17 |
def call_tryon_api(person_file, garm_file, category, model_type='SD_V1'):
|
|
|
|
| 18 |
tryon_url = os.environ['API_ENDPOINT'] + "/tryon/v1"
|
| 19 |
payload = {'garment_type': category, 'model_type': model_type}
|
| 20 |
files = {
|
|
@@ -31,7 +32,7 @@ def call_tryon_api(person_file, garm_file, category, model_type='SD_V1'):
|
|
| 31 |
data = response.json()
|
| 32 |
return data['job_id'], data['status']
|
| 33 |
else:
|
| 34 |
-
print(response)
|
| 35 |
except Exception as e:
|
| 36 |
print(f"call tryon api error: {e}")
|
| 37 |
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
def call_tryon_api(person_file, garm_file, category, model_type='SD_V1'):
|
| 18 |
+
print(person_file, garm_file, category)
|
| 19 |
tryon_url = os.environ['API_ENDPOINT'] + "/tryon/v1"
|
| 20 |
payload = {'garment_type': category, 'model_type': model_type}
|
| 21 |
files = {
|
|
|
|
| 32 |
data = response.json()
|
| 33 |
return data['job_id'], data['status']
|
| 34 |
else:
|
| 35 |
+
print(response.content)
|
| 36 |
except Exception as e:
|
| 37 |
print(f"call tryon api error: {e}")
|
| 38 |
|