Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
62a8a63
1
Parent(s):
1b06e77
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,8 @@ import clip
|
|
20 |
from tqdm.notebook import tqdm
|
21 |
from torchvision.transforms import Compose, Resize, ToTensor, Normalize
|
22 |
from einops import rearrange
|
|
|
|
|
23 |
device = torch.device('cuda:0')
|
24 |
def fetch(url_or_path):
|
25 |
if str(url_or_path).startswith('http://') or str(url_or_path).startswith('https://'):
|
|
|
20 |
from tqdm.notebook import tqdm
|
21 |
from torchvision.transforms import Compose, Resize, ToTensor, Normalize
|
22 |
from einops import rearrange
|
23 |
+
import gradio as gr
|
24 |
+
|
25 |
device = torch.device('cuda:0')
|
26 |
def fetch(url_or_path):
|
27 |
if str(url_or_path).startswith('http://') or str(url_or_path).startswith('https://'):
|