Update README with .env instructions
Browse files
README.md
CHANGED
@@ -20,7 +20,8 @@ Prototype that classifies text into positive or negative sentiments using a fine
|
|
20 |
## Usage
|
21 |
|
22 |
1. Download the [trained model](https://huggingface.co/rootstrap-org/bert-sentiment-classifier/blob/main/sentiments_bert_model.h5) and move it to the *models* directory
|
23 |
-
2.
|
|
|
24 |
* To use it as a **streamlit web app** run:
|
25 |
|
26 |
`streamlit run sentiment_analysis.py`
|
|
|
20 |
## Usage
|
21 |
|
22 |
1. Download the [trained model](https://huggingface.co/rootstrap-org/bert-sentiment-classifier/blob/main/sentiments_bert_model.h5) and move it to the *models* directory
|
23 |
+
2. Create a `.env` file and set a MODEL_NAME property with the name of the trained model file and optionally a MODEL_REPOSITORY_NAME property with the name of the huggingface repository of the model.
|
24 |
+
3. Use the tool:
|
25 |
* To use it as a **streamlit web app** run:
|
26 |
|
27 |
`streamlit run sentiment_analysis.py`
|