Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -76,8 +76,10 @@ def main():
|
|
76 |
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.")
|
77 |
change_bitrate = gr.Checkbox(label="Change Bitrate?")
|
78 |
audio_bitrate = gr.Dropdown(["128", "256", "320"], label="Audio Bitrate", info="Choose the bitrate for the audio file.")
|
|
|
79 |
convert_audio_butt = gr.Button(value='Convert Audio', variant='primary')
|
80 |
-
|
|
|
81 |
|
82 |
convert_audio_butt.click(fn=convert_audio, inputs=[audio_input, audio_output_format, change_bitrate, audio_bitrate], outputs=audio_output)
|
83 |
|
@@ -89,13 +91,16 @@ def main():
|
|
89 |
change_resolution = gr.Checkbox(label="Change Resolution?")
|
90 |
image_width = gr.Number(label="Image Width", value=1024, visible=False)
|
91 |
image_height = gr.Number(label="Image Height", value=768, visible=False)
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
95 |
|
96 |
convert_image_butt.click(fn=convert_image, inputs=[image_input, image_output_format, change_resolution, image_width, image_height], outputs=image_output)
|
97 |
-
with gr.Tab((
|
98 |
-
gr.Markdown(
|
|
|
|
|
99 |
app.queue(max_size=1022).launch(share=False)
|
100 |
|
101 |
|
|
|
76 |
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.")
|
77 |
change_bitrate = gr.Checkbox(label="Change Bitrate?")
|
78 |
audio_bitrate = gr.Dropdown(["128", "256", "320"], label="Audio Bitrate", info="Choose the bitrate for the audio file.")
|
79 |
+
with gr.Row():
|
80 |
convert_audio_butt = gr.Button(value='Convert Audio', variant='primary')
|
81 |
+
with gr.Row():
|
82 |
+
audio_output = gr.File(label="Download Converted Audio")
|
83 |
|
84 |
convert_audio_butt.click(fn=convert_audio, inputs=[audio_input, audio_output_format, change_bitrate, audio_bitrate], outputs=audio_output)
|
85 |
|
|
|
91 |
change_resolution = gr.Checkbox(label="Change Resolution?")
|
92 |
image_width = gr.Number(label="Image Width", value=1024, visible=False)
|
93 |
image_height = gr.Number(label="Image Height", value=768, visible=False)
|
94 |
+
with gr.Row():
|
95 |
+
convert_image_butt = gr.Button(value='Convert Image', variant='primary')
|
96 |
+
with gr.Row():
|
97 |
+
image_output = gr.File(label="Download Converted Image")
|
98 |
|
99 |
convert_image_butt.click(fn=convert_image, inputs=[image_input, image_output_format, change_resolution, image_width, image_height], outputs=image_output)
|
100 |
+
with gr.Tab(("")):
|
101 |
+
gr.Markdown('''
|
102 |
+
![note](https://huggingface.co/spaces/Blane187/Ilaria_RVC_mod/resolve/main/blane187'snote.png)
|
103 |
+
''')
|
104 |
app.queue(max_size=1022).launch(share=False)
|
105 |
|
106 |
|