wongshennan commited on
Commit
2ac3002
1 Parent(s): 945dbd0

update build

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +3 -0
app.py CHANGED
@@ -17,8 +17,8 @@ sys.path.append('src/blip')
17
  sys.path.append('src/clip')
18
  sys.path.append('clip-interrogator')
19
 
20
- # import clip
21
- # import torch
22
  import gradio as gr
23
  from clip_interrogator import Interrogator, Config
24
 
@@ -84,4 +84,4 @@ io = gr.Interface(
84
  allow_flagging=False,
85
  )
86
 
87
- io.launch(share=True, debug=True)
 
17
  sys.path.append('src/clip')
18
  sys.path.append('clip-interrogator')
19
 
20
+ import clip
21
+ import torch
22
  import gradio as gr
23
  from clip_interrogator import Interrogator, Config
24
 
 
84
  allow_flagging=False,
85
  )
86
 
87
+ io.launch()
requirements.txt CHANGED
@@ -4,9 +4,11 @@ anyio==3.6.2
4
  async-timeout==4.0.2
5
  attrs==22.1.0
6
  bcrypt==4.0.1
 
7
  cffi==1.15.1
8
  charset-normalizer==2.1.1
9
  click==8.1.3
 
10
  clip-interrogator==0.1.4
11
  contourpy==1.0.6
12
  cryptography==38.0.3
@@ -43,6 +45,7 @@ pandas==1.5.1
43
  paramiko==2.12.0
44
  Pillow==9.3.0
45
  protobuf==3.19.5
 
46
  pycparser==2.21
47
  pycryptodome==3.15.0
48
  pydantic==1.10.2
 
4
  async-timeout==4.0.2
5
  attrs==22.1.0
6
  bcrypt==4.0.1
7
+ certifi @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_0ek9yztvu3/croot/certifi_1665076692562/work/certifi
8
  cffi==1.15.1
9
  charset-normalizer==2.1.1
10
  click==8.1.3
11
+ -e git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1#egg=clip
12
  clip-interrogator==0.1.4
13
  contourpy==1.0.6
14
  cryptography==38.0.3
 
45
  paramiko==2.12.0
46
  Pillow==9.3.0
47
  protobuf==3.19.5
48
+ pycocotools==2.0.6
49
  pycparser==2.21
50
  pycryptodome==3.15.0
51
  pydantic==1.10.2