Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import os
|
3 |
import gradio as gr
|
4 |
from video_processing import process_video
|
@@ -55,7 +54,7 @@ def save_uploaded_file(file):
|
|
55 |
os.makedirs(upload_dir, exist_ok=True)
|
56 |
file_path = os.path.join(upload_dir, file.name)
|
57 |
with open(file_path, "wb") as f:
|
58 |
-
|
59 |
return file_path
|
60 |
|
61 |
def display_results(video_url, video_file, description):
|
|
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
from video_processing import process_video
|
|
|
54 |
os.makedirs(upload_dir, exist_ok=True)
|
55 |
file_path = os.path.join(upload_dir, file.name)
|
56 |
with open(file_path, "wb") as f:
|
57 |
+
f.write(file.encode('utf-8')) # Convert to bytes and write
|
58 |
return file_path
|
59 |
|
60 |
def display_results(video_url, video_file, description):
|