seanpedrickcase commited on
Commit
f2db299
1 Parent(s): 99d6fba

Added accelerate to requirements. Minor doc changes

Browse files
Files changed (2) hide show
  1. how_to_create_exe_dist.txt +2 -2
  2. requirements.txt +1 -0
how_to_create_exe_dist.txt CHANGED
@@ -17,10 +17,10 @@ NOTE: for ensuring that spaCy models are loaded into the program correctly in re
17
  8. In command line, cd to the folder that contains app.py. Then run the following:
18
 
19
  For one single file:
20
- python -m PyInstaller --additional-hooks-dir=. --hidden-import pyarrow.vendored.version --add-data="types.json;gradio_client" --add-data "model;model" --onefile --clean --noconfirm --upx-dir="C:\Program Files\UPX\upx-4.2.2-win64" --name DataSearchApp_0.1 app.py
21
 
22
  For a small exe with a folder of dependencies:
23
- python -m PyInstaller --additional-hooks-dir=. --hidden-import pyarrow.vendored.version --add-data="types.json;gradio_client" --add-data "model;model" --clean --noconfirm --upx-dir="C:\Program Files\UPX\upx-4.2.2-win64" --name DataSearchApp_0.1 app.py
24
 
25
  9. A 'dist' folder will be created with the executable inside along with all dependencies('dist\data_text_search').
26
 
 
17
  8. In command line, cd to the folder that contains app.py. Then run the following:
18
 
19
  For one single file:
20
+ python -m PyInstaller --additional-hooks-dir=. --hidden-import pyarrow.vendored.version --add-data="types.json;gradio_client" --add-data "model;model" --onefile --clean --noconfirm --name DataSearchApp_0.1 app.py
21
 
22
  For a small exe with a folder of dependencies:
23
+ python -m PyInstaller --additional-hooks-dir=. --hidden-import pyarrow.vendored.version --add-data="types.json;gradio_client" --add-data "model;model" --clean --noconfirm --name DataSearchApp_0.1 app.py
24
 
25
  9. A 'dist' folder will be created with the executable inside along with all dependencies('dist\data_text_search').
26
 
requirements.txt CHANGED
@@ -3,6 +3,7 @@ polars==0.20.3
3
  pyarrow==14.0.2
4
  openpyxl==3.1.2
5
  transformers==4.32.1
 
6
  torch==2.1.2
7
  spacy==3.7.2
8
  en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz
 
3
  pyarrow==14.0.2
4
  openpyxl==3.1.2
5
  transformers==4.32.1
6
+ accelerate==0.26.0
7
  torch==2.1.2
8
  spacy==3.7.2
9
  en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz