Spaces:
Sleeping
Sleeping
fixed error in dockerfile and save path
Browse files- Dockerfile +2 -0
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -6,6 +6,8 @@ COPY requirements.txt .
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
|
|
|
|
|
|
| 9 |
ENV MPLCONFIGDIR /tmp/matplotlib
|
| 10 |
|
| 11 |
RUN mkdir /app/results_vc
|
|
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
| 10 |
+
|
| 11 |
ENV MPLCONFIGDIR /tmp/matplotlib
|
| 12 |
|
| 13 |
RUN mkdir /app/results_vc
|
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def trim_video(input_file, output_format, start_time, end_time):
|
|
| 125 |
def convert_video(input_file, output_format):
|
| 126 |
try:
|
| 127 |
# Set output file
|
| 128 |
-
output_folder = f"{os.getcwd()}/
|
| 129 |
output_file = set_output_file(input_file, output_format, output_folder)
|
| 130 |
|
| 131 |
# Convert video
|
|
|
|
| 125 |
def convert_video(input_file, output_format):
|
| 126 |
try:
|
| 127 |
# Set output file
|
| 128 |
+
output_folder = f"{os.getcwd()}/results_vc/"
|
| 129 |
output_file = set_output_file(input_file, output_format, output_folder)
|
| 130 |
|
| 131 |
# Convert video
|