Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,10 +40,9 @@ btn_start = st.sidebar.button('Загрузить')
|
|
40 |
if btn_start:
|
41 |
# Запрос к YouTube API для получения комментариев к видео
|
42 |
api_service_name = "youtube"
|
43 |
-
api_version = "v3"
|
44 |
-
DEVELOPER_KEY = API_key
|
45 |
youtube = googleapiclient.discovery.build(
|
46 |
-
api_service_name, api_version, developerKey=
|
47 |
request = youtube.commentThreads().list(
|
48 |
part="snippet",
|
49 |
videoId=vidID,
|
|
|
40 |
if btn_start:
|
41 |
# Запрос к YouTube API для получения комментариев к видео
|
42 |
api_service_name = "youtube"
|
43 |
+
api_version = "v3"
|
|
|
44 |
youtube = googleapiclient.discovery.build(
|
45 |
+
api_service_name, api_version, developerKey=API_key)
|
46 |
request = youtube.commentThreads().list(
|
47 |
part="snippet",
|
48 |
videoId=vidID,
|