Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,13 +20,14 @@ def main():
|
|
| 20 |
import Milestone5API
|
| 21 |
# Title
|
| 22 |
st.title("Translate YouTube Video to French")
|
| 23 |
-
|
| 24 |
url = st.text_input("Enter YouTube Video URL")
|
| 25 |
captions_list = [] # Initialize empty list for captions
|
| 26 |
|
| 27 |
if url:
|
| 28 |
captions, translated_captions, original_file, translated_file = Milestone5API.download_video_transcript(url)
|
| 29 |
-
|
|
|
|
| 30 |
if captions and translated_captions:
|
| 31 |
df = pd.DataFrame(columns=["Timestamp", "Original", "Translated"])
|
| 32 |
|
|
|
|
| 20 |
import Milestone5API
|
| 21 |
# Title
|
| 22 |
st.title("Translate YouTube Video to French")
|
| 23 |
+
|
| 24 |
url = st.text_input("Enter YouTube Video URL")
|
| 25 |
captions_list = [] # Initialize empty list for captions
|
| 26 |
|
| 27 |
if url:
|
| 28 |
captions, translated_captions, original_file, translated_file = Milestone5API.download_video_transcript(url)
|
| 29 |
+
print(captions)
|
| 30 |
+
print(translated_captions)
|
| 31 |
if captions and translated_captions:
|
| 32 |
df = pd.DataFrame(columns=["Timestamp", "Original", "Translated"])
|
| 33 |
|