Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ import gradio as gr
|
|
5 |
|
6 |
# Load the CLIP model
|
7 |
model, preprocess = clip.load("ViT-B/32")
|
8 |
-
device = "cuda" if torch.cuda.
|
9 |
model.to(device).eval()
|
|
|
10 |
|
11 |
# Define the Business Listing variable
|
12 |
Business_Listing = "Air Guide"
|
|
|
5 |
|
6 |
# Load the CLIP model
|
7 |
model, preprocess = clip.load("ViT-B/32")
|
8 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
model.to(device).eval()
|
10 |
+
print(device)
|
11 |
|
12 |
# Define the Business Listing variable
|
13 |
Business_Listing = "Air Guide"
|