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
About
This model performs sentiment analysis on an input text. The model outputs one of the two classes: Positive or Negative
Setup instructions
Clone the repository:
git clone https://github.com/Bilal303-ai/Sentiment-Analysis cd Sentiment-AnalysisInstall
tensorflowandkeras_nlpRun the following command:
python inference.py
- Downloads last month
- 24
# !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")