RandomPersonRR commited on
Commit
55f9dd1
Β·
verified Β·
1 Parent(s): f699201

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -21
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("## Low Quality Video Inator")
97
- gr.Markdown("Upload a video or use a YouTube URL and adjust the options below.")
98
-
99
- with gr.Row():
100
- use_youtube = gr.Checkbox(label="Use YouTube URL", value=False)
101
- youtube_url = gr.Textbox(label="YouTube URL")
102
- video_file = gr.File(label="Upload Video")
103
-
104
- with gr.Row():
105
- downscale = gr.Checkbox(label="Downscale Video (144p)", value=False)
106
- faster = gr.Checkbox(label="Faster Conversion (ultrafast preset)", value=False)
107
- with gr.Row():
108
- use_mp3 = gr.Checkbox(label="Use MP3 (skip video compression)", value=False)
109
- audio_only = gr.Checkbox(label="Only Audio", value=False)
110
-
111
- convert_button = gr.Button("Convert")
112
- gr.Markdown("### Preview")
113
- video_preview = gr.Video()
114
- gr.Markdown("### Download")
115
- file_download = gr.File()
 
 
 
 
 
 
 
 
 
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,