reedmayhew commited on
Commit
92c37e9
1 Parent(s): 089d49a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import numpy as np
4
  import torch
5
  from transformers import AutoImageProcessor, Swin2SRForImageSuperResolution
6
  import gradio as gr # Import Gradio for creating the interface
 
7
 
8
  # Function to upscale an image using Swin2SR
9
  def upscale_image(image, model, processor, device):
 
4
  import torch
5
  from transformers import AutoImageProcessor, Swin2SRForImageSuperResolution
6
  import gradio as gr # Import Gradio for creating the interface
7
+ import spaces
8
 
9
  # Function to upscale an image using Swin2SR
10
  def upscale_image(image, model, processor, device):