This project provides sentiment analysis using two methods:
-
Install Dependencies
Install the necessary packages for Gradio. -
Create
app_gradio.py
Set up a Python file to define the Gradio interface and sentiment analysis function. -
Run
Execute the Python file to start the Gradio app.
-
Install Dependencies
Install the necessary packages for Flask. -
Create
app.py
Set up a Python file for the Flask application and sentiment analysis. -
Create
templates/index.html
Design a simple HTML form for user input and displaying results. -
Run
Execute the Python file to start the Flask server and access the web app.
- Gradio: Launch the app and follow the URL provided.
- Flask: Start the server and visit
http://127.0.0.1:5000/
in your browser.