Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,9 +75,9 @@ def main():
|
|
75 |
audio_output_format = gr.Dropdown(["wav", "flac", "ogg", "mp3", "aac", "m4a", "m4r"], label="Audio Output Format", info="Choose the desired output format for the audio file.")
|
76 |
change_bitrate = gr.Checkbox(label="Change Bitrate?")
|
77 |
audio_bitrate = gr.Dropdown(["128", "256", "320"], label="Audio Bitrate", info="Choose the bitrate for the audio file.")
|
78 |
-
with gr.
|
79 |
convert_audio_butt = gr.Button(value='Convert Audio', variant='primary')
|
80 |
-
with gr.
|
81 |
audio_output = gr.File(label="Download Converted Audio")
|
82 |
|
83 |
convert_audio_butt.click(fn=convert_audio, inputs=[audio_input, audio_output_format, change_bitrate, audio_bitrate], outputs=audio_output)
|
@@ -90,9 +90,9 @@ def main():
|
|
90 |
change_resolution = gr.Checkbox(label="Change Resolution?")
|
91 |
image_width = gr.Number(label="Image Width", value=1024, visible=False)
|
92 |
image_height = gr.Number(label="Image Height", value=768, visible=False)
|
93 |
-
with gr.
|
94 |
convert_image_butt = gr.Button(value='Convert Image', variant='primary')
|
95 |
-
with gr.
|
96 |
image_output = gr.File(label="Download Converted Image")
|
97 |
|
98 |
convert_image_butt.click(fn=convert_image, inputs=[image_input, image_output_format, change_resolution, image_width, image_height], outputs=image_output)
|
|
|
75 |
audio_output_format = gr.Dropdown(["wav", "flac", "ogg", "mp3", "aac", "m4a", "m4r"], label="Audio Output Format", info="Choose the desired output format for the audio file.")
|
76 |
change_bitrate = gr.Checkbox(label="Change Bitrate?")
|
77 |
audio_bitrate = gr.Dropdown(["128", "256", "320"], label="Audio Bitrate", info="Choose the bitrate for the audio file.")
|
78 |
+
with gr.Column():
|
79 |
convert_audio_butt = gr.Button(value='Convert Audio', variant='primary')
|
80 |
+
with gr.Column():
|
81 |
audio_output = gr.File(label="Download Converted Audio")
|
82 |
|
83 |
convert_audio_butt.click(fn=convert_audio, inputs=[audio_input, audio_output_format, change_bitrate, audio_bitrate], outputs=audio_output)
|
|
|
90 |
change_resolution = gr.Checkbox(label="Change Resolution?")
|
91 |
image_width = gr.Number(label="Image Width", value=1024, visible=False)
|
92 |
image_height = gr.Number(label="Image Height", value=768, visible=False)
|
93 |
+
with gr.Column():
|
94 |
convert_image_butt = gr.Button(value='Convert Image', variant='primary')
|
95 |
+
with gr.Column():
|
96 |
image_output = gr.File(label="Download Converted Image")
|
97 |
|
98 |
convert_image_butt.click(fn=convert_image, inputs=[image_input, image_output_format, change_resolution, image_width, image_height], outputs=image_output)
|