Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,13 +212,13 @@ def get_duration(
|
|
| 212 |
progress,
|
| 213 |
):
|
| 214 |
|
| 215 |
-
return duration_seconds
|
| 216 |
|
| 217 |
|
| 218 |
@spaces.GPU(duration=get_duration)
|
| 219 |
def magnify(
|
| 220 |
input_image: Image.Image,
|
| 221 |
-
duration_seconds =
|
| 222 |
user_prompt = "",
|
| 223 |
positive_prompt = "clean, high-resolution, 8k, best quality, masterpiece",
|
| 224 |
negative_prompt = "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
|
|
|
| 212 |
progress,
|
| 213 |
):
|
| 214 |
|
| 215 |
+
return int(duration_seconds)
|
| 216 |
|
| 217 |
|
| 218 |
@spaces.GPU(duration=get_duration)
|
| 219 |
def magnify(
|
| 220 |
input_image: Image.Image,
|
| 221 |
+
duration_seconds = 60,
|
| 222 |
user_prompt = "",
|
| 223 |
positive_prompt = "clean, high-resolution, 8k, best quality, masterpiece",
|
| 224 |
negative_prompt = "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|