Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -591,6 +591,7 @@ def replicate_upscale(url: str, image_url: str, upscale: int = 2):
|
|
591 |
prediction_id = response.json()['id']
|
592 |
while True:
|
593 |
response = session.get(f'https://replicate.com/api/predictions/{prediction_id}', headers=headers)
|
|
|
594 |
status = response.json()['status']
|
595 |
if status == 'succeeded':
|
596 |
break
|
|
|
591 |
prediction_id = response.json()['id']
|
592 |
while True:
|
593 |
response = session.get(f'https://replicate.com/api/predictions/{prediction_id}', headers=headers)
|
594 |
+
print(response.text)
|
595 |
status = response.json()['status']
|
596 |
if status == 'succeeded':
|
597 |
break
|