Darius Morawiec commited on
Commit
abc111d
·
1 Parent(s): 73b837f

Add dummy function to handle GPU allocation in Spaces

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -32,6 +32,11 @@ else:
32
  return wrapper
33
 
34
 
 
 
 
 
 
35
  # Define constants
36
  GPU_DURATION = 300
37
  EXAMPLES_DIR = Path(__file__).parent / "examples"
 
32
  return wrapper
33
 
34
 
35
+ @spaces.GPU
36
+ def dummy():
37
+ return
38
+
39
+
40
  # Define constants
41
  GPU_DURATION = 300
42
  EXAMPLES_DIR = Path(__file__).parent / "examples"