How to use from the
Use from the
Keras library
# !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")

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:

    git clone https://github.com/Bilal303-ai/Sentiment-Analysis
    cd Sentiment-Analysis
    
  2. Install tensorflow and keras_nlp

  3. Run the following command:

    python inference.py
    
Downloads last month
24
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support