Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -519,7 +519,7 @@ torch.cuda.empty_cache()
|
|
519 |
|
520 |
# functionality
|
521 |
|
522 |
-
@spaces.GPU(duration=
|
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=
|
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')
|