Eason Lu commited on
Commit
af22336
1 Parent(s): d23f574

modify rdme

Browse files

Former-commit-id: e230ef71bf2afdccbc8eeb893d46fd660ca568b8

Files changed (1) hide show
  1. README.md +32 -15
README.md CHANGED
@@ -6,31 +6,48 @@
6
  pip install -r requirement.txt
7
  ```
8
 
9
- ## Usage
10
- ```
11
- usage: pipeline.py [-h] [--link LINK] [--local_path LOCAL_PATH] [--download DOWNLOAD] [--result RESULT] [--video_name VIDEO_NAME] [--model_name]
12
 
13
- quick start:
14
 
15
- example online: python3 pipeline.py --link https://www.youtube.com/watch?v=61c4dn6851g --download ./downloads --result ./results --video_name SO_I_CHOSE_RANDOM
 
 
 
 
 
 
 
16
 
17
- example offline: python3 pipeline.py --local_path test_translation.m4a --result ./results --video_name test_translation
 
 
 
18
 
19
- example text input: python pipeline.py --text_file "/home/jiaenliu/project-t/results/huanghe_translation_en.txt" --result "/home/jiaenliu/project-t/results" --video_name "huanghe_test"
 
 
 
20
 
21
  options:
22
  -h, --help show this help message and exit
23
  --link LINK youtube video link here
24
- --local_path LOCAL_PATH
25
  local video path here
 
 
 
26
  --download DOWNLOAD download path
27
- --result RESULT translate result path
 
28
  --video_name VIDEO_NAME
29
- video name
30
- --model_name MODEL_NAME
31
- model name
 
 
 
32
 
 
33
  if you cannot download youtube video, please follow the link below.
34
- https://github.com/pytube/pytube/issues/1498
35
-
36
- ```
 
6
  pip install -r requirement.txt
7
  ```
8
 
9
+ ## Quick Start:
 
 
10
 
11
+ example online:
12
 
13
+ ```
14
+ python3 pipeline.py --link "https://www.youtube.com/watch?v=61c4dn6851g"
15
+ ```
16
+
17
+ example offline:
18
+ ```
19
+ python3 pipeline.py --audio_file test_translation.m4a --result ./results --video_name test_translation
20
+ ```
21
 
22
+ example srt input:
23
+ ```
24
+ python pipeline.py --text_file "/home/jiaenliu/project-t/results/huanghe_translation_en.txt" --result "/home/jiaenliu/project-t/results" --video_name "huanghe_test"
25
+ ```
26
 
27
+ ## Usage
28
+ ```
29
+ usage: pipeline.py [-h] [--link LINK] [--video_file VIDEO_FILE] [--audio_file AUDIO_FILE] [--srt_file SRT_FILE] [--download DOWNLOAD]
30
+ [--output_dir OUTPUT_DIR] [--video_name VIDEO_NAME] [--model_name MODEL_NAME] [-only_srt] [-v]
31
 
32
  options:
33
  -h, --help show this help message and exit
34
  --link LINK youtube video link here
35
+ --video_file VIDEO_FILE
36
  local video path here
37
+ --audio_file AUDIO_FILE
38
+ local audio path here
39
+ --srt_file SRT_FILE srt file input path here
40
  --download DOWNLOAD download path
41
+ --output_dir OUTPUT_DIR
42
+ translate result path
43
  --video_name VIDEO_NAME
44
+ video name, if use video link as input, the name will auto-filled by youtube video name
45
+ --model_name MODEL_NAME
46
+ model name only support text-davinci-003 and gpt-3.5-turbo
47
+ -only_srt set script output to only .srt file
48
+ -v auto encode script with video
49
+ ```
50
 
51
+ ## Notice
52
  if you cannot download youtube video, please follow the link below.
53
+ https://github.com/pytube/pytube/issues/1498