Dakerqi commited on
Commit
7c7d0d7
·
verified ·
1 Parent(s): 852a4a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -39,6 +39,7 @@ from safetensors.torch import load_file
39
  import torch
40
  #i#mport torch.distributed as dist
41
  from torchvision.transforms.functional import to_pil_image
 
42
 
43
  from imgproc import generate_crop_size_list
44
  import models
@@ -365,7 +366,7 @@ def find_free_port() -> int:
365
  sock.close()
366
  return port
367
 
368
- @spaces.GPU(duration=60)
369
  def main():
370
  parser = argparse.ArgumentParser()
371
 
@@ -549,6 +550,7 @@ def main():
549
  label="Examples",
550
  ) # noqa
551
 
 
552
  def on_submit(*args):
553
  for q in request_queues:
554
  q.put(args)
 
39
  import torch
40
  #i#mport torch.distributed as dist
41
  from torchvision.transforms.functional import to_pil_image
42
+ import spaces
43
 
44
  from imgproc import generate_crop_size_list
45
  import models
 
366
  sock.close()
367
  return port
368
 
369
+
370
  def main():
371
  parser = argparse.ArgumentParser()
372
 
 
550
  label="Examples",
551
  ) # noqa
552
 
553
+ @spaces.GPU(duration=200)
554
  def on_submit(*args):
555
  for q in request_queues:
556
  q.put(args)