Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -92,6 +92,9 @@ def normalize_and_save_video(input_video_path, output_video_path):
|
|
92 |
# Normalize pixel values to the range [0, 1]
|
93 |
frame /= 255.0
|
94 |
|
|
|
|
|
|
|
95 |
# Write the normalized frame to the output video file
|
96 |
out.write(frame)
|
97 |
|
|
|
92 |
# Normalize pixel values to the range [0, 1]
|
93 |
frame /= 255.0
|
94 |
|
95 |
+
# Convert normalized frame back to 8-bit unsigned integer
|
96 |
+
frame = (frame * 255.0).astype(np.uint8)
|
97 |
+
|
98 |
# Write the normalized frame to the output video file
|
99 |
out.write(frame)
|
100 |
|