jbilcke-hf HF staff commited on
Commit
51c9556
β€’
1 Parent(s): 261cd62

update the README to warn about Docker issues on Mac

Browse files
Files changed (1) hide show
  1. README.md +19 -3
README.md CHANGED
@@ -11,6 +11,10 @@ app_port: 7860
11
  A minimalist Docker space to help people getting started with Node, CTransformers (through Pythonia), Express and TypeScript.
12
  Ready to be used in a Hugging Face Space.
13
 
 
 
 
 
14
  ## Installation
15
 
16
  ### Prerequisites
@@ -57,7 +61,19 @@ npm run docker
57
  This script is a shortcut executing the following commands:
58
 
59
  ```bash
60
- docker pull nikolaik/python-nodejs
61
- docker build -t template-node-python-express .
62
- docker run -it -p 7860:7860 template-node-python-express
 
 
 
 
 
 
 
63
  ```
 
 
 
 
 
 
11
  A minimalist Docker space to help people getting started with Node, CTransformers (through Pythonia), Express and TypeScript.
12
  Ready to be used in a Hugging Face Space.
13
 
14
+ ## Demo
15
+
16
+ https://huggingface.co/spaces/jbilcke-hf/template-node-ctransformers-express
17
+
18
  ## Installation
19
 
20
  ### Prerequisites
 
61
  This script is a shortcut executing the following commands:
62
 
63
  ```bash
64
+ docker build -t template-node-ctransformers-express .
65
+ docker run -it -p 7860:7860 template-node-ctransformers-express
66
+ ```
67
+
68
+ Attention! If you have a Mac, you may have trouble running the project on your machine.
69
+
70
+ You will see the following error message because Docker won't be able to use the pre-generated binaries for libctransformers:so:
71
+
72
+ ```
73
+ πŸŒ‰ OSError: /home/user/.local/lib/python3.11/site-packages/ctransformers/lib/avx2/libctransformers.so: cannot open shared object file: No such file or directory]
74
  ```
75
+
76
+ However if you run your project on a Hugging Face space, you should be just fine :)
77
+
78
+ See this demo: https://huggingface.co/spaces/jbilcke-hf/template-node-ctransformers-express
79
+