Skip to content

Priyank911/Sentiment-Analysis

Repository files navigation

Sentiment Analysis Project

This project provides sentiment analysis using two methods:

Method 1: Gradio

  1. Install Dependencies
    Install the necessary packages for Gradio.

  2. Create app_gradio.py
    Set up a Python file to define the Gradio interface and sentiment analysis function.

  3. Run
    Execute the Python file to start the Gradio app.

    Gradio Interface

Method 2: Flask with HTML

  1. Install Dependencies
    Install the necessary packages for Flask.

  2. Create app.py
    Set up a Python file for the Flask application and sentiment analysis.

  3. Create templates/index.html
    Design a simple HTML form for user input and displaying results.

  4. Run
    Execute the Python file to start the Flask server and access the web app.

    Flask Interface

Usage

  • Gradio: Launch the app and follow the URL provided.
  • Flask: Start the server and visit http://127.0.0.1:5000/ in your browser.

Releases

No releases published

Packages

No packages published