Upload 2 files
Browse filesimport gradio as gr
def shortify(video):
# Platzhalter-Funktion – hier kommt später dein KI-Video-Processing hin
return "✅ Dein Video wurde verarbeitet! (Demo-Ausgabe)"
app = gr.Interface(
fn=shortify,
inputs=gr.Video(label="Video hochladen oder URL einfügen"),
outputs="text",
title="Shorty – Video → Shorts",
description="Lade ein Video hoch und erhalte automatisch einen Short-Clip. (Demo-Version)"
)
if __name__ == "__main__":
app.launch()
gradio
- app.py.txt +16 -0
- enquirements.txt +1 -0
app.py.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def shortify(video):
|
| 4 |
+
# Platzhalter-Funktion – hier kommt später dein KI-Video-Processing hin
|
| 5 |
+
return "✅ Dein Video wurde verarbeitet! (Demo-Ausgabe)"
|
| 6 |
+
|
| 7 |
+
app = gr.Interface(
|
| 8 |
+
fn=shortify,
|
| 9 |
+
inputs=gr.Video(label="Video hochladen oder URL einfügen"),
|
| 10 |
+
outputs="text",
|
| 11 |
+
title="Shorty – Video → Shorts",
|
| 12 |
+
description="Lade ein Video hoch und erhalte automatisch einen Short-Clip. (Demo-Version)"
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
if __name__ == "__main__":
|
| 16 |
+
app.launch()
|
enquirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio
|