Commit
·
5559672
1
Parent(s):
1e9a1ec
check rgb video existence
Browse files- .gitignore +3 -0
- app.py +4 -0
.gitignore
CHANGED
|
@@ -201,3 +201,6 @@ __marimo__/
|
|
| 201 |
|
| 202 |
# Streamlit
|
| 203 |
.streamlit/secrets.toml
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
|
| 202 |
# Streamlit
|
| 203 |
.streamlit/secrets.toml
|
| 204 |
+
|
| 205 |
+
/logs/
|
| 206 |
+
/data/
|
app.py
CHANGED
|
@@ -287,6 +287,10 @@ def generate_video(
|
|
| 287 |
|
| 288 |
log.info(f"actual_seed: {actual_seed}")
|
| 289 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
# add timer to calculate the generation time
|
| 291 |
start_time = time.time()
|
| 292 |
|
|
|
|
| 287 |
|
| 288 |
log.info(f"actual_seed: {actual_seed}")
|
| 289 |
|
| 290 |
+
if not os.path.isfile(rgb_video_path):
|
| 291 |
+
log.warning(f"File {rgb_video_path} does not exist")
|
| 292 |
+
rgb_video_path = ""
|
| 293 |
+
|
| 294 |
# add timer to calculate the generation time
|
| 295 |
start_time = time.time()
|
| 296 |
|