Spaces:
Paused
Paused
Commit
·
190ac99
1
Parent(s):
3d35386
fix
Browse files
app.py
CHANGED
@@ -235,7 +235,8 @@ def serve_cached_film(title):
|
|
235 |
|
236 |
# Assuming there's only one file, get its path
|
237 |
file_path = os.path.join(folder_path, files[0])
|
238 |
-
|
|
|
239 |
# Determine the MIME type based on the file extension
|
240 |
mime_type = 'video/mp4'
|
241 |
if file_path.lower().endswith('.mkv'):
|
@@ -254,6 +255,5 @@ def serve_cached_film(title):
|
|
254 |
|
255 |
return Response(generate(), mimetype=mime_type)
|
256 |
|
257 |
-
|
258 |
if __name__ == '__main__':
|
259 |
app.run(debug=True, host="0.0.0.0", port=7860)
|
|
|
235 |
|
236 |
# Assuming there's only one file, get its path
|
237 |
file_path = os.path.join(folder_path, files[0])
|
238 |
+
print("fills :"+files)
|
239 |
+
print("file path : "+ file_path)
|
240 |
# Determine the MIME type based on the file extension
|
241 |
mime_type = 'video/mp4'
|
242 |
if file_path.lower().endswith('.mkv'):
|
|
|
255 |
|
256 |
return Response(generate(), mimetype=mime_type)
|
257 |
|
|
|
258 |
if __name__ == '__main__':
|
259 |
app.run(debug=True, host="0.0.0.0", port=7860)
|