Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import os
|
|
| 5 |
|
| 6 |
# -------- Video Trim Funktion --------
|
| 7 |
def trim_video(file, start, duration):
|
| 8 |
-
# Pfade für temporäre Dateien
|
| 9 |
input_path = f"/tmp/{uuid.uuid4()}_in.mp4"
|
| 10 |
output_path = f"/tmp/{uuid.uuid4()}_out.mp4"
|
| 11 |
|
|
@@ -40,5 +39,5 @@ iface = gr.Interface(
|
|
| 40 |
description="Trimme Videos direkt im Hugging Face Space"
|
| 41 |
)
|
| 42 |
|
| 43 |
-
# --------
|
| 44 |
iface.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 5 |
|
| 6 |
# -------- Video Trim Funktion --------
|
| 7 |
def trim_video(file, start, duration):
|
|
|
|
| 8 |
input_path = f"/tmp/{uuid.uuid4()}_in.mp4"
|
| 9 |
output_path = f"/tmp/{uuid.uuid4()}_out.mp4"
|
| 10 |
|
|
|
|
| 39 |
description="Trimme Videos direkt im Hugging Face Space"
|
| 40 |
)
|
| 41 |
|
| 42 |
+
# -------- Server starten --------
|
| 43 |
iface.launch(server_name="0.0.0.0", server_port=7860)
|