Instructions to use BilalHasan/Sentiment-Analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use BilalHasan/Sentiment-Analysis with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://BilalHasan/Sentiment-Analysis") - Notebooks
- Google Colab
- Kaggle
File size: 481 Bytes
be6a437 046f45a 692b06c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ---
license: apache-2.0
language:
- en
pipeline_tag: text-classification
---
---
# About
This model performs sentiment analysis on an input text. The model outputs one of the two classes: Positive or Negative
# Setup instructions
1. Clone the repository:
```bash
git clone https://github.com/Bilal303-ai/Sentiment-Analysis
cd Sentiment-Analysis
```
3. Install `tensorflow` and `keras_nlp`
5. Run the following command:
```bash
python inference.py
``` |