gokaygokay commited on
Commit
154494a
1 Parent(s): 3d95225

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -14,7 +14,7 @@ original_load = torch.load
14
  torch.load = lambda *args, **kwargs: original_load(*args, **kwargs, map_location=torch.device('cpu'))
15
 
16
  # Initialize the AuraSR model
17
- aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
18
 
19
  # Restore original torch.load
20
  torch.load = original_load
@@ -36,12 +36,13 @@ def process_image(input_image):
36
 
37
  @spaces.GPU
38
  def process_image_on_gpu(pil_image):
39
- return aura_sr.upscale_4x(pil_image)
40
 
41
- title = """<h1 align="center">AuraSR - An open reproduction of the GigaGAN Upscaler from fal.ai</h1>
42
  <p><center>
 
43
  <a href="https://blog.fal.ai/introducing-aurasr-an-open-reproduction-of-the-gigagan-upscaler-2/" target="_blank">[Blog Post]</a>
44
- <a href="https://huggingface.co/fal-ai/AuraSR" target="_blank">[Model Page]</a>
45
  </center></p>
46
  """
47
 
 
14
  torch.load = lambda *args, **kwargs: original_load(*args, **kwargs, map_location=torch.device('cpu'))
15
 
16
  # Initialize the AuraSR model
17
+ aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR-v2")
18
 
19
  # Restore original torch.load
20
  torch.load = original_load
 
36
 
37
  @spaces.GPU
38
  def process_image_on_gpu(pil_image):
39
+ return aura_sr.upscale_4x_overlapped(pil_image)
40
 
41
+ title = """<h1 align="center">AuraSR-v2 - An open reproduction of the GigaGAN Upscaler from fal.ai</h1>
42
  <p><center>
43
+ <a href="https://huggingface.co/fal/AuraSR-v2" target="_blank">[AuraSR-v2]</a>
44
  <a href="https://blog.fal.ai/introducing-aurasr-an-open-reproduction-of-the-gigagan-upscaler-2/" target="_blank">[Blog Post]</a>
45
+ <a href="https://huggingface.co/fal-ai/AuraSR" target="_blank">[v1 Model Page]</a>
46
  </center></p>
47
  """
48