Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,6 @@ extractor = RapidVideOCR(
|
|
| 53 |
save_dir = Path("images")
|
| 54 |
mkdir(save_dir)
|
| 55 |
output_dir = Path("outputs")
|
| 56 |
-
save_file_dir = None
|
| 57 |
|
| 58 |
st.markdown("#### Upload ZIP files of RGBImages or TXTImages from VideoSubFinder:")
|
| 59 |
with st.form('my-form', clear_on_submit=True):
|
|
@@ -90,4 +89,4 @@ if srt_path is not None and srt_path.exists():
|
|
| 90 |
)
|
| 91 |
if is_download_srt:
|
| 92 |
shutil.rmtree(str(srt_path.resolve().parent))
|
| 93 |
-
shutil.rmtree(str(
|
|
|
|
| 53 |
save_dir = Path("images")
|
| 54 |
mkdir(save_dir)
|
| 55 |
output_dir = Path("outputs")
|
|
|
|
| 56 |
|
| 57 |
st.markdown("#### Upload ZIP files of RGBImages or TXTImages from VideoSubFinder:")
|
| 58 |
with st.form('my-form', clear_on_submit=True):
|
|
|
|
| 89 |
)
|
| 90 |
if is_download_srt:
|
| 91 |
shutil.rmtree(str(srt_path.resolve().parent))
|
| 92 |
+
shutil.rmtree(str(save_dir.resolve()))
|