Yaron Koresh commited on
Commit
f8b521a
·
verified ·
1 Parent(s): 10f9e54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -519,7 +519,7 @@ torch.cuda.empty_cache()
519
 
520
  # functionality
521
 
522
- @spaces.GPU(duration=300)
523
  def upscaler(
524
  input_image: Image.Image,
525
  prompt: str = "Masterpiece, Best Quality, Hyper-Realistic, Super-Realistic, Natural, Reasonable, Logical.",
@@ -1263,7 +1263,7 @@ def translate(txt,to_lang="en",from_lang="auto"):
1263
  log(f'RET translate with translation as {translation}')
1264
  return translation.lower()
1265
 
1266
- @spaces.GPU(duration=150)
1267
  def handle_generation(h,w,d):
1268
 
1269
  log(f'CALL handle_generate')
 
519
 
520
  # functionality
521
 
522
+ @spaces.GPU(duration=240)
523
  def upscaler(
524
  input_image: Image.Image,
525
  prompt: str = "Masterpiece, Best Quality, Hyper-Realistic, Super-Realistic, Natural, Reasonable, Logical.",
 
1263
  log(f'RET translate with translation as {translation}')
1264
  return translation.lower()
1265
 
1266
+ @spaces.GPU(duration=180)
1267
  def handle_generation(h,w,d):
1268
 
1269
  log(f'CALL handle_generate')