Spaces:
Sleeping
Sleeping
update requirements
Browse files- app.py +3 -1
- requirements.txt +10 -8
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
-
import torch
|
2 |
import cv2
|
|
|
|
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
|
@@ -10,6 +11,7 @@ if torch.cuda.is_available():
|
|
10 |
else:
|
11 |
device = torch.device("cpu")
|
12 |
|
|
|
13 |
def manipulate_image(img, text_queries, score_threshold):
|
14 |
return img
|
15 |
|
|
|
|
|
1 |
import cv2
|
2 |
+
import torch
|
3 |
+
import clip
|
4 |
import gradio as gr
|
5 |
import numpy as np
|
6 |
|
|
|
11 |
else:
|
12 |
device = torch.device("cpu")
|
13 |
|
14 |
+
|
15 |
def manipulate_image(img, text_queries, score_threshold):
|
16 |
return img
|
17 |
|
requirements.txt
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
click==8.0.3
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
4 |
ftfy==6.1.1
|
|
|
|
|
|
|
5 |
google-auth==1.35.0
|
6 |
google-auth-oauthlib==0.4.6
|
7 |
google-pasta==0.2.0
|
@@ -25,9 +31,9 @@ notebook==6.4.7
|
|
25 |
numba==0.55.1
|
26 |
numpy==1.21.4
|
27 |
oauthlib==3.1.1
|
28 |
-
opencv-python
|
29 |
pandas==1.3.5
|
30 |
-
Pillow
|
31 |
protobuf==3.19.3
|
32 |
psutil==5.8.0
|
33 |
PyYAML @ file:///Users/runner/miniforge3/conda-bld/pyyaml_1636139902075/work
|
@@ -39,10 +45,6 @@ tensorboard==2.2.2
|
|
39 |
tensorboard-data-server==0.6.1
|
40 |
tensorboard-plugin-wit==1.8.1
|
41 |
tensorflow==2.2.0
|
42 |
-
torch==1.10.0
|
43 |
-
torchaudio==0.10.0
|
44 |
-
torchdiffeq==0.2.2
|
45 |
-
torchvision==0.11.1
|
46 |
tornado==6.1
|
47 |
tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1632160078689/work
|
48 |
urllib3==1.26.7
|
|
|
1 |
click==8.0.3
|
2 |
+
torch==1.10.0
|
3 |
+
torchaudio==0.10.0
|
4 |
+
torchdiffeq==0.2.2
|
5 |
+
torchvision==0.11.1
|
6 |
+
colorama
|
7 |
ftfy==6.1.1
|
8 |
+
regex
|
9 |
+
tqdm
|
10 |
+
git+https://github.com/openai/CLIP.git
|
11 |
google-auth==1.35.0
|
12 |
google-auth-oauthlib==0.4.6
|
13 |
google-pasta==0.2.0
|
|
|
31 |
numba==0.55.1
|
32 |
numpy==1.21.4
|
33 |
oauthlib==3.1.1
|
34 |
+
opencv-python
|
35 |
pandas==1.3.5
|
36 |
+
Pillow==9.3.0
|
37 |
protobuf==3.19.3
|
38 |
psutil==5.8.0
|
39 |
PyYAML @ file:///Users/runner/miniforge3/conda-bld/pyyaml_1636139902075/work
|
|
|
45 |
tensorboard-data-server==0.6.1
|
46 |
tensorboard-plugin-wit==1.8.1
|
47 |
tensorflow==2.2.0
|
|
|
|
|
|
|
|
|
48 |
tornado==6.1
|
49 |
tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1632160078689/work
|
50 |
urllib3==1.26.7
|