fix: ruff

This commit is contained in:
Jason Liu
2024-03-04 16:53:46 -05:00
parent a0c1859fc6
commit c834f7517d
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -53,4 +53,4 @@ if __name__ == "__main__":
question='What is the largest planet in our solar system?' answer='Jupiter'
question="Who wrote 'To Kill a Mockingbird'?" answer='Harper Lee'
question="What element does 'O' represent on the periodic table?" answer='Oxygen'
"""
"""
+1 -2
View File
@@ -9,12 +9,12 @@ client = instructor.patch(openai.OpenAI())
def extract_video_id(url: str) -> str | None:
import re
match = re.search(r"v=([a-zA-Z0-9_-]+)", url)
if match:
return match.group(1)
class TranscriptSegment(BaseModel):
source_id: int
start: float
@@ -95,7 +95,6 @@ if __name__ == "__main__":
console = Console()
url = Prompt.ask("Enter a YouTube URL")
with console.status("[bold green]Processing YouTube URL...") as status:
video_id = extract_video_id(url)