Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -514,7 +514,7 @@ torch.cuda.empty_cache()
|
|
514 |
|
515 |
# functionality
|
516 |
|
517 |
-
@spaces.GPU(duration=
|
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=
|
1266 |
def handle_generation(h,w,d):
|
1267 |
|
1268 |
log(f'CALL handle_generate')
|
|
|
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 |
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')
|