Link to Site:
http://18.237.75.195:3000/
Link to ML Model I Trained from Scratch:
http://18.237.75.195:3000/my-model-notebook
Note: This site is currently not using HTTPS (secure connection).
script.js: Handles requests to the server and updating HTML items in the DOM.server.js: Main server setup and API routes.Transcript.js: Responsible for parsing and extraction of YouTube captions through scraping.OpenAiApi.js: Manages interactions with the OpenAI API and sets prompts.generateSummary.js: This module likely facilitates the generation of summaries using OpenAI's API.
- Clone the repository:
git clone [your-repository-url]- Install dependencies:
npm install- Setup your environment variables: Create a .env file in the root directory of your project and add the following:
API_KEY=your_openai_api_key_here- Start the server:
node server.js- Once the server starts, you should see the message: Server is running on http://localhost:3000
https://hrboka.medium.com/setting-up-a-node-website-on-apache-with-aws-lightsail-8dfac2c4467d
- Method: GET
- Endpoint:
/captions - Query Parameter:
videoId(The ID of the YouTube video from which you want to fetch captions) - Response: Returns the fetched transcript data in JSON format.
- Method: POST
- Endpoint:
/generateSummary - Request Body:
{ "captions": [captionsData...] }
Response: Returns a summarized content based on the captions data.
Feel free to dive in! Open an issue or submit PRs.
MIT © [Your Name]