hatmanstack commited on
Commit
18cba2e
·
1 Parent(s): 06de91c
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -15,7 +15,7 @@ This repository contains a static React Native application built using Expo with
15
 
16
  ## Installation
17
 
18
- To generate the static content for this container have a working Node/npm installation then and clone this [github repo](https://github.com/HatmanStack/react-native-serve-ml). In `App.js` change the `axios.post` call to `"/api"`.
19
 
20
  ```shell
21
  npm install -g yarn
@@ -23,7 +23,7 @@ yarn
23
  npx expo export:web
24
  ```
25
 
26
- Static files are output to the web-build folder in the root directory. Replace the web-build folder in the Huggingface-Space directory with the web-build folder in the root directory. Once that's done, the static content of the app will be updated. The Huggingface-Space directory can be deployed as a single container.<b>In a single container to reach the endpoint from the axios call use "/api" not "http://localhost:8081/api".</b>
27
 
28
  ## License
29
 
 
15
 
16
  ## Installation
17
 
18
+ To generate the static content for this container have a working Node/npm installation and clone this [github repo](https://github.com/HatmanStack/react-native-serve-ml). In your huggingface space Settings add your HF_TOKEN variable as a secret.
19
 
20
  ```shell
21
  npm install -g yarn
 
23
  npx expo export:web
24
  ```
25
 
26
+ Static files are output to the web-build folder in the root directory. Replace the web-build folder in the Huggingface-Space directory with the web-build folder in the root directory. Once that's done, the static content of the app will be updated. The Huggingface-Space directory can be deployed as a single container.<b>In a single container to reach the endpoint from the axios call use "http://localhost:<port>/api" not "http://localhost:8081/api".</b>
27
 
28
  ## License
29