Spaces:
Runtime error
Runtime error
fixing CLIP dependency issue
Browse files- app.py +3 -0
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -7,6 +7,9 @@ import clip
|
|
| 7 |
import torch.nn as nn
|
| 8 |
from torchvision.transforms import transforms
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
device = device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
|
|
|
|
| 7 |
import torch.nn as nn
|
| 8 |
from torchvision.transforms import transforms
|
| 9 |
|
| 10 |
+
import os
|
| 11 |
+
|
| 12 |
+
os.system('pip install git+https://github.com/openai/CLIP.git')
|
| 13 |
|
| 14 |
device = device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 15 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
openai-clip==1.0
|
| 2 |
gradio==4.19.1
|
| 3 |
Pillow==10.2.0
|
| 4 |
torch==1.13.0
|
|
|
|
|
|
|
| 1 |
gradio==4.19.1
|
| 2 |
Pillow==10.2.0
|
| 3 |
torch==1.13.0
|