Update app.py
Browse files
app.py
CHANGED
@@ -92,27 +92,36 @@ def convert_video(*args):
|
|
92 |
return asyncio.run(process_conversion(*args))
|
93 |
|
94 |
# Gradio Interface
|
95 |
-
with gr.Blocks() as demo:
|
96 |
-
gr.Markdown("
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
convert_button.click(
|
118 |
convert_video,
|
|
|
92 |
return asyncio.run(process_conversion(*args))
|
93 |
|
94 |
# Gradio Interface
|
95 |
+
with gr.Blocks(theme=gr.themes.Default(primary_hue="rose")) as demo:
|
96 |
+
gr.Markdown("""
|
97 |
+
# π₯ **Low Quality Video Inator**
|
98 |
+
Welcome to your personal bad-video-making machine.
|
99 |
+
|
100 |
+
Upload a video or paste a YouTube URL below, then tweak the settings to ruin your video (on purpose).
|
101 |
+
""")
|
102 |
+
|
103 |
+
with gr.Group():
|
104 |
+
with gr.Row():
|
105 |
+
use_youtube = gr.Checkbox(label="π Use YouTube URL (experimental)", value=False)
|
106 |
+
youtube_url = gr.Textbox(label="YouTube URL", placeholder="Paste YouTube URL here")
|
107 |
+
video_file = gr.File(label="π Upload Video File")
|
108 |
+
|
109 |
+
gr.Markdown("### βοΈ **Conversion Settings**")
|
110 |
+
with gr.Group():
|
111 |
+
with gr.Row():
|
112 |
+
downscale = gr.Checkbox(label="Downscale Video to 144p", value=False)
|
113 |
+
faster = gr.Checkbox(label="Faster Video Compression", value=False)
|
114 |
+
with gr.Row():
|
115 |
+
use_mp3 = gr.Checkbox(label="Use MP3 Audio", value=False)
|
116 |
+
audio_only = gr.Checkbox(label="Audio Only", value=False)
|
117 |
+
|
118 |
+
convert_button = gr.Button("Convert Now", variant="primary")
|
119 |
+
|
120 |
+
gr.Markdown("### **Conversion Preview**")
|
121 |
+
video_preview = gr.Video(label="Preview Output (if applicable)")
|
122 |
+
|
123 |
+
gr.Markdown("### **Download Your Masterpiece**")
|
124 |
+
file_download = gr.File(label="Download Result")
|
125 |
|
126 |
convert_button.click(
|
127 |
convert_video,
|