Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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):
|