gokaygokay commited on
Commit
39ffbcb
1 Parent(s): ff46a0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,6 +4,7 @@ from PIL import Image
4
  import numpy as np
5
  from aura_sr import AuraSR
6
  import torch
 
7
 
8
  # Initialize the AuraSR model
9
  aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
@@ -12,6 +13,7 @@ aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
12
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
  aura_sr.to(device)
14
 
 
15
  def process_image(input_image):
16
  if input_image is None:
17
  return None
 
4
  import numpy as np
5
  from aura_sr import AuraSR
6
  import torch
7
+ import spaces
8
 
9
  # Initialize the AuraSR model
10
  aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
 
13
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
  aura_sr.to(device)
15
 
16
+ @spaces.GPU
17
  def process_image(input_image):
18
  if input_image is None:
19
  return None