With this project I tried to test the capabilities of integrating AI models in the frontend using the Transformers library. By leveraging these models, you can provide advanced functionalities directly in the browser without relying on a backend server.
- Image Analysis: Upload an image to get an analysis of its content.
- Text Sentiment Analysis: Input any text to get a sentiment analysis.
- YouTube Comment Sentiment Analysis: Input a YouTube video URL to analyze the sentiment of its comments.
To use the YouTube comment sentiment analysis feature, you will need an API key for the YouTube Data API v3. You can obtain this key from the Google Developer Console.
Clone the repository to your local machine using the following command:
git clone https://github.com/jorbelca/testing_transformers.git
Navigate to the project directory and open the index.html
file in your preferred web browser.
For the YouTube comment sentiment analysis to work, you need to insert your YouTube API key in the JavaScript file.
Create key.js
and create the following line:
const apiKey = "YOUR_YOUTUBE_API_KEY";
- Click on the "Upload Image" button.
- Select an image file from your device.
- Click "Analyze Image" to get the analysis results.
- Enter the text you want to analyze in the provided text box.
- Click "Send" to get the sentiment analysis.
- Enter the URL of the YouTube video whose comments you want to analyze.
- Click "Analyze " to get the sentiment analysis of the comments.
- HTML
- CSS
- JavaScript
This project is licensed under the MIT License. See the LICENSE file for details.
Xenova