Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,13 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
24 |
|
25 |
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
# --- Utility Functions ---
|
28 |
def extract_youtube_id(url: str) -> str:
|
29 |
"""Extract YouTube ID from various URL formats"""
|
|
|
24 |
|
25 |
|
26 |
|
27 |
+
from typing import Optional
|
28 |
+
from pydantic import BaseModel
|
29 |
+
|
30 |
+
class InputSchema(BaseModel):
|
31 |
+
include_timestamps: Optional[bool] = None
|
32 |
+
|
33 |
+
|
34 |
# --- Utility Functions ---
|
35 |
def extract_youtube_id(url: str) -> str:
|
36 |
"""Extract YouTube ID from various URL formats"""
|