Spaces:
Running
on
Zero
Running
on
Zero
malvin noel
commited on
Commit
·
ef107f6
1
Parent(s):
449544a
change script
Browse files- app.py +2 -3
- scripts/generate_scripts.py +2 -0
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import shutil
|
@@ -17,9 +19,6 @@ from scripts.generate_subtitles import (
|
|
17 |
add_subtitles_to_video,
|
18 |
)
|
19 |
|
20 |
-
from __future__ import annotations
|
21 |
-
import os
|
22 |
-
from typing import List
|
23 |
import torch
|
24 |
from transformers import (
|
25 |
AutoTokenizer,
|
|
|
1 |
+
#app.py
|
2 |
+
from __future__ import annotations
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
import shutil
|
|
|
19 |
add_subtitles_to_video,
|
20 |
)
|
21 |
|
|
|
|
|
|
|
22 |
import torch
|
23 |
from transformers import (
|
24 |
AutoTokenizer,
|
scripts/generate_scripts.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import os
|
2 |
import re
|
3 |
import json
|
|
|
1 |
+
# generate_scripts.py
|
2 |
+
|
3 |
import os
|
4 |
import re
|
5 |
import json
|