Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ from transformers.image_utils import to_numpy_array
|
|
5 |
import torch
|
6 |
import plotly.graph_objects as go
|
7 |
from PIL import Image
|
|
|
8 |
|
9 |
-
|
10 |
def process_images(image1, image2):
|
11 |
"""
|
12 |
Process two images and return a plot of the matching keypoints.
|
|
|
5 |
import torch
|
6 |
import plotly.graph_objects as go
|
7 |
from PIL import Image
|
8 |
+
import spaces
|
9 |
|
10 |
+
@spaces.GPU
|
11 |
def process_images(image1, image2):
|
12 |
"""
|
13 |
Process two images and return a plot of the matching keypoints.
|