Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,7 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
return f"Erro ao conectar: {str(e)}"
|
9 |
-
|
10 |
-
print(test_connectivity())
|
|
|
1 |
+
from youtube_transcript_api import YouTubeTranscriptApi
|
2 |
|
3 |
+
try:
|
4 |
+
transcript = YouTubeTranscriptApi.get_transcript("dQw4w9WgXcQ", languages=["en"])
|
5 |
+
print("Transcrição obtida com sucesso:", transcript)
|
6 |
+
except Exception as e:
|
7 |
+
print("Erro:", repr(e))
|
|
|
|
|
|