Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihan786Chistie committed Jul 28, 2024
0 parents commit 12c6d56
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
venv/
22 changes: 22 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from dotenv import load_dotenv
import google.generativeai as genai
import os
from flask import Flask, request
from youtube_transcript_api import YouTubeTranscriptApi

load_dotenv()

genai.configure(api_key=os.getenv("GEMINI_PRO_API_KEY"))

prompt = """You are a Youtube video summarizer.
Given the transcript of a YouTube video, please summarize the main points and key takeaways in a concise and easy-to-understand format. The summary should include:
Introduction: Briefly describe the video's topic or main focus.
Key Points: List the most important information, ideas, or arguments presented in the video.
Conclusion: Summarize any final thoughts, conclusions, or calls to action from the video.
Make sure the summary is clear and accessible, providing a quick yet comprehensive overview of the video's content.
This is the transcrit text:
"""

5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
youtube-transcript-api
google-generativeai
python-dotenv
pathlib
flask

0 comments on commit 12c6d56

Please sign in to comment.