Spaces:
Sleeping
Sleeping
File size: 2,048 Bytes
c3f9f83 c447410 63ecb0d 7a7c7ac 97c4132 7a7c7ac 97c4132 7a7c7ac af22336 7a7c7ac af22336 7a7c7ac af22336 66791b6 af22336 66791b6 7511df3 66791b6 af22336 ae0ed1b 7a7c7ac af22336 7a7c7ac af22336 7a7c7ac af22336 7a7c7ac af22336 147a645 af22336 147a645 c3f9f83 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
license: mit
title: ViDove_demo
sdk: gradio
emoji: 🐠
colorFrom: blue
colorTo: green
pinned: false
app_file: entries/app.py
---
# Pigeon AI: Automatic Video Translation Toolkit
## Installation
```
pip install -r requirement.txt
```
## Quick Start:
example online:
```
python3 pipeline.py --link "https://www.youtube.com/watch?v=61c4dn6851g"
```
example offline:
```
python3 pipeline.py --audio_file test_translation.m4a --result ./results --video_name test_translation
```
python3 pipeline.py --link https://www.youtube.com/watch?v=VrigMmXt9A0 --video_name Ukraine_and_its_Global_Impact
python3 pipeline.py --video_file '/home/jiaenliu/project-t/downloads/audio/Ukraine_and_its_Global_Impact.mp4' -v --video_name Ukraine_and_its_Global_Impact
example offline: python3 pipeline.py --local_path test_translation.m4a --result ./results --video_name test_translation
## Usage
```
usage: pipeline.py [-h] [--link LINK] [--video_file VIDEO_FILE] [--audio_file AUDIO_FILE] [--srt_file SRT_FILE] [--download DOWNLOAD]
[--output_dir OUTPUT_DIR] [--video_name VIDEO_NAME] [--model_name MODEL_NAME] [-only_srt] [-v]
options:
-h, --help show this help message and exit
--link LINK youtube video link here
--video_file VIDEO_FILE
local video path here
--audio_file AUDIO_FILE
local audio path here
--srt_file SRT_FILE srt file input path here
--download DOWNLOAD download path
--output_dir OUTPUT_DIR
translate result path
--video_name VIDEO_NAME
video name, if use video link as input, the name will auto-filled by youtube video name
--model_name MODEL_NAME
model name only support text-davinci-003 and gpt-3.5-turbo
-only_srt set script output to only .srt file
-v auto encode script with video
```
## Notice
if you cannot download youtube video, please follow the link below.
https://github.com/pytube/pytube/issues/1498 |