Spaces:
Running
Running
Commit
·
4864311
1
Parent(s):
a60bcd1
youtube mod script updated
Browse files
app/services/youtube_moderator.py
CHANGED
@@ -20,6 +20,7 @@ from pydantic import BaseModel
|
|
20 |
|
21 |
|
22 |
from app.services.gambling_filter import GamblingFilter
|
|
|
23 |
|
24 |
def get_credentials_from_session(session) -> Credentials:
|
25 |
"""Utility to build a Credentials object from stored session data."""
|
@@ -37,8 +38,8 @@ def get_credentials_from_session(session) -> Credentials:
|
|
37 |
|
38 |
class YouTubeCommentModerator:
|
39 |
def __init__(self,
|
40 |
-
|
41 |
-
|
42 |
"""
|
43 |
Initialize the YouTube Comment Moderator with configurable settings.
|
44 |
|
|
|
20 |
|
21 |
|
22 |
from app.services.gambling_filter import GamblingFilter
|
23 |
+
from app.services.youtube_moderator import manual_overrides
|
24 |
|
25 |
def get_credentials_from_session(session) -> Credentials:
|
26 |
"""Utility to build a Credentials object from stored session data."""
|
|
|
38 |
|
39 |
class YouTubeCommentModerator:
|
40 |
def __init__(self,
|
41 |
+
client_secrets_path: str = "./app/client_secret.json",
|
42 |
+
gambling_filter: Optional[GamblingFilter] = None):
|
43 |
"""
|
44 |
Initialize the YouTube Comment Moderator with configurable settings.
|
45 |
|