Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from video_processing import process_video
|
|
5 |
from gradio.themes.base import Base
|
6 |
from gradio.themes.utils import colors, fonts, sizes
|
7 |
from typing import Iterable
|
|
|
8 |
|
9 |
class CustomTheme(Base):
|
10 |
def __init__(
|
@@ -54,7 +55,7 @@ def save_uploaded_file(file):
|
|
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 |
-
|
58 |
return file_path
|
59 |
|
60 |
def display_results(video_url, video_file, description):
|
|
|
5 |
from gradio.themes.base import Base
|
6 |
from gradio.themes.utils import colors, fonts, sizes
|
7 |
from typing import Iterable
|
8 |
+
import shutil
|
9 |
|
10 |
class CustomTheme(Base):
|
11 |
def __init__(
|
|
|
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 |
+
shutil.copyfileobj(file, f)
|
59 |
return file_path
|
60 |
|
61 |
def display_results(video_url, video_file, description):
|