Darius Morawiec commited on
Commit
028f4ca
·
1 Parent(s): 65e8d45

Increase GPU duration due download times

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ else:
24
 
25
  class spaces:
26
  @staticmethod
27
- def GPU(func):
28
  def wrapper(*args, **kwargs):
29
  return func(*args, **kwargs)
30
 
@@ -145,7 +145,7 @@ with gr.Blocks() as demo:
145
  current_processor = None
146
  current_model_id = None
147
 
148
- @spaces.GPU
149
  def run(
150
  image,
151
  model_id: str,
 
24
 
25
  class spaces:
26
  @staticmethod
27
+ def GPU(func, duration: int = 60):
28
  def wrapper(*args, **kwargs):
29
  return func(*args, **kwargs)
30
 
 
145
  current_processor = None
146
  current_model_id = None
147
 
148
+ @spaces.GPU(duration=300)
149
  def run(
150
  image,
151
  model_id: str,