mattupson commited on
Commit
e07bcc0
β€’
1 Parent(s): 455f5a4

chg: Pin dependencies

Browse files
Files changed (4) hide show
  1. Makefile +21 -0
  2. app.py +1 -2
  3. requirements.txt +74 -3
  4. unpinned_requirements.txt +3 -0
Makefile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PYTHON_VERSION = python3.10
2
+ VIRTUALENV := .venv
3
+
4
+ .PHONY: virtualenv
5
+ virtualenv:
6
+ @if [ -d $(VIRTUALENV) ]; then rm -rf $(VIRTUALENV); fi
7
+ @mkdir -p $(VIRTUALENV)
8
+ virtualenv --python $(PYTHON_VERSION) $(VIRTUALENV)
9
+ $(VIRTUALENV)/bin/pip3 install --upgrade pip
10
+ $(VIRTUALENV)/bin/pip3 install --upgrade -r requirements.txt
11
+
12
+ .PHONY: update-requirements-txt
13
+ update-requirements-txt: VIRTUALENV := /tmp/update-requirements-virtualenv
14
+ update-requirements-txt:
15
+ @if [ -d $(VIRTUALENV) ]; then rm -rf $(VIRTUALENV); fi
16
+ @mkdir -p $(VIRTUALENV)
17
+ virtualenv --python $(PYTHON_VERSION) $(VIRTUALENV)
18
+ $(VIRTUALENV)/bin/pip3 install --upgrade pip
19
+ $(VIRTUALENV)/bin/pip3 install --upgrade -r unpinned_requirements.txt
20
+ echo "# Created by 'make update-requirements-txt'. DO NOT EDIT!" > requirements.txt
21
+ $(VIRTUALENV)/bin/pip freeze | grep -v pkg_resources==0.0.0 >> requirements.txt
app.py CHANGED
@@ -1,6 +1,5 @@
1
- from transformers import AutoModel, AutoTokenizer
2
  import streamlit as st
3
-
4
 
5
  st.header("MeshTagger πŸ”–")
6
  threshold = st.sidebar.slider("Threshold", value=0.5, min_value=0.0, max_value=1.0)
 
 
1
  import streamlit as st
2
+ from transformers import AutoModel, AutoTokenizer
3
 
4
  st.header("MeshTagger πŸ”–")
5
  threshold = st.sidebar.slider("Threshold", value=0.5, min_value=0.0, max_value=1.0)
requirements.txt CHANGED
@@ -1,3 +1,74 @@
1
- transformers==4.20.1
2
- torch==1.11.0
3
- streamlit==1.10.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Created by 'make update-requirements-txt'. DO NOT EDIT!
2
+ altair==5.0.1
3
+ attrs==23.1.0
4
+ blinker==1.6.2
5
+ cachetools==5.3.1
6
+ certifi==2023.5.7
7
+ charset-normalizer==3.1.0
8
+ click==8.1.3
9
+ cmake==3.26.4
10
+ decorator==5.1.1
11
+ filelock==3.12.2
12
+ fsspec==2023.6.0
13
+ gitdb==4.0.10
14
+ GitPython==3.1.31
15
+ huggingface-hub==0.15.1
16
+ idna==3.4
17
+ importlib-metadata==6.7.0
18
+ Jinja2==3.1.2
19
+ jsonschema==4.17.3
20
+ lit==16.0.6
21
+ markdown-it-py==3.0.0
22
+ MarkupSafe==2.1.3
23
+ mdurl==0.1.2
24
+ mpmath==1.3.0
25
+ networkx==3.1
26
+ numpy==1.25.0
27
+ nvidia-cublas-cu11==11.10.3.66
28
+ nvidia-cuda-cupti-cu11==11.7.101
29
+ nvidia-cuda-nvrtc-cu11==11.7.99
30
+ nvidia-cuda-runtime-cu11==11.7.99
31
+ nvidia-cudnn-cu11==8.5.0.96
32
+ nvidia-cufft-cu11==10.9.0.58
33
+ nvidia-curand-cu11==10.2.10.91
34
+ nvidia-cusolver-cu11==11.4.0.1
35
+ nvidia-cusparse-cu11==11.7.4.91
36
+ nvidia-nccl-cu11==2.14.3
37
+ nvidia-nvtx-cu11==11.7.91
38
+ packaging==23.1
39
+ pandas==2.0.3
40
+ Pillow==9.5.0
41
+ protobuf==4.23.3
42
+ pyarrow==12.0.1
43
+ pydeck==0.8.1b0
44
+ Pygments==2.15.1
45
+ Pympler==1.0.1
46
+ pyrsistent==0.19.3
47
+ python-dateutil==2.8.2
48
+ pytz==2023.3
49
+ pytz-deprecation-shim==0.1.0.post0
50
+ PyYAML==6.0
51
+ regex==2023.6.3
52
+ requests==2.31.0
53
+ rich==13.4.2
54
+ safetensors==0.3.1
55
+ six==1.16.0
56
+ smmap==5.0.0
57
+ streamlit==1.24.0
58
+ sympy==1.12
59
+ tenacity==8.2.2
60
+ tokenizers==0.13.3
61
+ toml==0.10.2
62
+ toolz==0.12.0
63
+ torch==2.0.1
64
+ tornado==6.3.2
65
+ tqdm==4.65.0
66
+ transformers==4.30.2
67
+ triton==2.0.0
68
+ typing_extensions==4.7.1
69
+ tzdata==2023.3
70
+ tzlocal==4.3.1
71
+ urllib3==2.0.3
72
+ validators==0.20.0
73
+ watchdog==3.0.0
74
+ zipp==3.15.0
unpinned_requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ transformers
2
+ torch
3
+ streamlit