mrciolino commited on
Commit
882a71b
1 Parent(s): 8ef3e55
Files changed (2) hide show
  1. app.py +7 -8
  2. requirements.txt +3 -134
app.py CHANGED
@@ -1,14 +1,12 @@
1
- import os
2
- import torch
3
  from transformers import OwlViTProcessor, OwlViTForObjectDetection
4
- import warnings
5
- import numpy as np
6
- from PIL import Image
7
- from io import BytesIO
8
- import streamlit as st
9
  import matplotlib.pyplot as plt
 
 
 
 
 
10
  import io
11
- import matplotlib.colors as mcolors
12
 
13
 
14
  # setttings
@@ -63,6 +61,7 @@ def show_detects(image):
63
  st.title("Results")
64
  st.image(image, use_column_width=True, caption="Object Detection Results", clamp=True)
65
 
 
66
  def process(upload, text, threshold):
67
 
68
  # save upload to file
 
 
 
1
  from transformers import OwlViTProcessor, OwlViTForObjectDetection
2
+ import matplotlib.colors as mcolors
 
 
 
 
3
  import matplotlib.pyplot as plt
4
+ import streamlit as st
5
+ from PIL import Image
6
+ import warnings
7
+ import torch
8
+ import os
9
  import io
 
10
 
11
 
12
  # setttings
 
61
  st.title("Results")
62
  st.image(image, use_column_width=True, caption="Object Detection Results", clamp=True)
63
 
64
+
65
  def process(upload, text, threshold):
66
 
67
  # save upload to file
requirements.txt CHANGED
@@ -1,136 +1,5 @@
1
- altair==4.1.0
2
- anyio==3.5.0
3
- argon2-cffi==21.3.0
4
- argon2-cffi-bindings==21.2.0
5
- asttokens==2.2.1
6
- attrs==22.1.0
7
- autopep8==1.6.0
8
- backcall==0.2.0
9
- backports.functools-lru-cache==1.6.4
10
- beautifulsoup4==4.11.1
11
- bleach==4.1.0
12
- blinker==1.4
13
- Bottleneck==1.3.5
14
- brotlipy==0.7.0
15
- cachetools==4.2.2
16
- certifi==2022.9.24
17
- cffi==1.15.1
18
- charset-normalizer==2.0.4
19
- click==8.0.4
20
- colorama==0.4.5
21
- comm==0.1.2
22
- commonmark==0.9.1
23
- contourpy==1.0.5
24
- cryptography==38.0.1
25
- cycler==0.11.0
26
- debugpy==1.5.1
27
- decorator==5.1.1
28
- defusedxml==0.7.1
29
- entrypoints==0.4
30
- executing==1.2.0
31
- fastjsonschema==2.16.2
32
- filelock==3.6.0
33
- flit_core==3.6.0
34
- fonttools==4.25.0
35
- future==0.18.2
36
- gitdb==4.0.7
37
- GitPython==3.1.18
38
- huggingface-hub==0.10.1
39
- idna==3.4
40
- importlib-metadata==4.11.3
41
- ipykernel==6.19.3
42
- ipython==8.7.0
43
- ipython-genutils==0.2.0
44
- ipywidgets==7.6.5
45
- jedi==0.18.2
46
- Jinja2==3.1.2
47
- jsonschema==4.16.0
48
- jupyter_client==7.4.8
49
- jupyter_core==5.1.0
50
- jupyter-server==1.18.1
51
- jupyterlab-pygments==0.1.2
52
- jupyterlab-widgets==1.0.0
53
- kiwisolver==1.4.2
54
- lxml==4.9.1
55
- MarkupSafe==2.1.1
56
  matplotlib==3.6.2
57
- matplotlib-inline==0.1.6
58
- mistune==0.8.4
59
- mkl-fft==1.3.1
60
- mkl-random==1.2.2
61
- mkl-service==2.4.0
62
- munkres==1.1.4
63
- nbclassic==0.4.8
64
- nbclient==0.5.13
65
- nbconvert==6.5.4
66
- nbformat==5.7.0
67
- nest-asyncio==1.5.6
68
- notebook==6.5.2
69
- notebook_shim==0.2.2
70
- numexpr==2.8.4
71
- numpy==1.22.3
72
- packaging==21.3
73
- pandas==1.5.2
74
- pandocfilters==1.5.0
75
- parso==0.8.3
76
- pickleshare==0.7.5
77
- Pillow==9.3.0
78
- pip==22.3.1
79
- platformdirs==2.6.0
80
- ply==3.11
81
- prometheus-client==0.14.1
82
- prompt-toolkit==3.0.36
83
- protobuf==3.20.1
84
- psutil==5.9.0
85
- pure-eval==0.2.2
86
- pyarrow==8.0.0
87
- pycodestyle==2.8.0
88
- pycparser==2.21
89
- pydeck==0.7.1
90
- Pygments==2.13.0
91
- Pympler==0.9
92
- pyOpenSSL==22.0.0
93
- pyparsing==3.0.9
94
- PyQt5==5.15.7
95
- PyQt5-sip==12.11.0
96
- pyrsistent==0.18.0
97
- PySocks==1.7.1
98
- python-dateutil==2.8.2
99
- pytz==2022.1
100
- PyYAML==6.0
101
- pyzmq==23.2.0
102
- regex==2022.7.9
103
- requests==2.28.1
104
- rich==12.5.1
105
- semver==2.13.0
106
- Send2Trash==1.8.0
107
- setuptools==65.5.0
108
- sip==6.6.2
109
- six==1.16.0
110
- smmap==4.0.0
111
- sniffio==1.2.0
112
- soupsieve==2.3.2.post1
113
- stack-data==0.6.2
114
  streamlit==1.11.0
115
- terminado==0.13.1
116
- tinycss2==1.2.1
117
- tokenizers==0.11.4
118
- toml==0.10.2
119
- toolz==0.12.0
120
- torch==1.13.1
121
- torchaudio==0.13.1
122
- torchvision==0.14.1
123
- tornado==6.2
124
- tqdm==4.64.1
125
- traitlets==5.8.0
126
- transformers==4.24.0
127
- typing_extensions==4.4.0
128
- tzlocal==2.1
129
- urllib3==1.26.13
130
- validators==0.18.2
131
- watchdog==2.1.6
132
- wcwidth==0.2.5
133
- webencodings==0.5.1
134
- websocket-client==0.58.0
135
- wheel==0.37.1
136
- zipp==3.8.0
 
1
+ transformers==4.24.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  matplotlib==3.6.2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  streamlit==1.11.0
4
+ Pillow==9.3.0
5
+ torch==1.13.1