LexBwmn commited on
Commit
21b9e9a
·
verified ·
1 Parent(s): c1d5f45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import PIL.Image as Image
5
  import numpy as np
6
  import os
7
  from huggingface_hub import hf_hub_download
 
8
 
9
  token = os.getenv("ACE_TOKEN")
10
  repo_id = "LexBwmn/ACE_LAB"
@@ -20,6 +21,7 @@ except Exception as e:
20
  print(f"Error loading private model: {e}")
21
  model = None
22
 
 
23
  def predict(img):
24
  global model
25
  if model is None:
 
5
  import numpy as np
6
  import os
7
  from huggingface_hub import hf_hub_download
8
+ import spaces
9
 
10
  token = os.getenv("ACE_TOKEN")
11
  repo_id = "LexBwmn/ACE_LAB"
 
21
  print(f"Error loading private model: {e}")
22
  model = None
23
 
24
+ @spaces.GPU
25
  def predict(img):
26
  global model
27
  if model is None: