alexnasa commited on
Commit
e068147
·
verified ·
1 Parent(s): 9c0d8e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 1,
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",