Yaron Koresh commited on
Commit
30c0eee
·
verified ·
1 Parent(s): 5892391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -514,7 +514,7 @@ torch.cuda.empty_cache()
514
 
515
  # functionality
516
 
517
- @spaces.GPU(duration=120)
518
  def upscaler(
519
  input_image: Image.Image,
520
  prompt: str = "Accurate, Highly Detailed, Realistic, Best Quality, Hyper-Realistic, Super-Realistic, Natural, Reasonable, Logical.",
@@ -1262,7 +1262,7 @@ def translate(txt,to_lang="en",from_lang="auto"):
1262
  log(f'RET translate with translation as {translation}')
1263
  return translation.lower()
1264
 
1265
- @spaces.GPU(duration=120)
1266
  def handle_generation(h,w,d):
1267
 
1268
  log(f'CALL handle_generate')
 
514
 
515
  # functionality
516
 
517
+ @spaces.GPU(duration=240)
518
  def upscaler(
519
  input_image: Image.Image,
520
  prompt: str = "Accurate, Highly Detailed, Realistic, Best Quality, Hyper-Realistic, Super-Realistic, Natural, Reasonable, Logical.",
 
1262
  log(f'RET translate with translation as {translation}')
1263
  return translation.lower()
1264
 
1265
+ @spaces.GPU(duration=240)
1266
  def handle_generation(h,w,d):
1267
 
1268
  log(f'CALL handle_generate')