csukuangfj
commited on
Commit
·
ffd4c6b
1
Parent(s):
94e0fd2
small fixes
Browse files
app.py
CHANGED
@@ -95,7 +95,6 @@ def process_uploaded_video_file(
|
|
95 |
)
|
96 |
|
97 |
logging.info(f"Processing uploaded file: {in_filename}")
|
98 |
-
show_file_info(in_filename)
|
99 |
|
100 |
ans = process(language, repo_id, in_filename)
|
101 |
return (in_filename, ans[0]), ans[0], ans[1], ans[2]
|
@@ -114,7 +113,6 @@ def process_uploaded_audio_file(
|
|
114 |
)
|
115 |
|
116 |
logging.info(f"Processing uploaded file: {in_filename}")
|
117 |
-
show_file_info(in_filename)
|
118 |
|
119 |
return process(language, repo_id, in_filename)
|
120 |
|
@@ -130,6 +128,7 @@ def process(language: str, repo_id: str, in_filename: str):
|
|
130 |
with open(srt_filename, "w", encoding="utf-8") as f:
|
131 |
f.write(result)
|
132 |
|
|
|
133 |
logging.info("Done")
|
134 |
|
135 |
return (
|
|
|
95 |
)
|
96 |
|
97 |
logging.info(f"Processing uploaded file: {in_filename}")
|
|
|
98 |
|
99 |
ans = process(language, repo_id, in_filename)
|
100 |
return (in_filename, ans[0]), ans[0], ans[1], ans[2]
|
|
|
113 |
)
|
114 |
|
115 |
logging.info(f"Processing uploaded file: {in_filename}")
|
|
|
116 |
|
117 |
return process(language, repo_id, in_filename)
|
118 |
|
|
|
128 |
with open(srt_filename, "w", encoding="utf-8") as f:
|
129 |
f.write(result)
|
130 |
|
131 |
+
show_file_info(in_filename)
|
132 |
logging.info("Done")
|
133 |
|
134 |
return (
|