Blane187 commited on
Commit
f1a3e35
1 Parent(s): ee20066

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -56,7 +56,6 @@ def convert_image(input_image, output_format, change_resolution, width, height):
56
  return out_file
57
 
58
 
59
-
60
  def main():
61
  # Gradio Interface
62
  with gr.Blocks() as app:
@@ -77,7 +76,7 @@ def main():
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
 
@@ -91,15 +90,17 @@ def main():
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
- convert_image_butt = gr.Button(value='Convert Image', variant='primary')
 
95
  with gr.Row():
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)
99
- with gr.Tab(("")):
100
- gr.Markdown('''
101
  ![note](https://huggingface.co/spaces/Blane187/Ilaria_RVC_mod/resolve/main/blane187'snote.png)
102
- ''')
 
103
  app.queue(max_size=1022).launch(share=False)
104
 
105
 
 
56
  return out_file
57
 
58
 
 
59
  def main():
60
  # Gradio Interface
61
  with gr.Blocks() as app:
 
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.Row():
79
+ convert_audio_butt = gr.Button(value='Convert Audio', variant='primary')
80
  with gr.Row():
81
  audio_output = gr.File(label="Download Converted Audio")
82
 
 
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.Row():
94
+ convert_image_butt = gr.Button(value='Convert Image', variant='primary')
95
  with gr.Row():
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)
99
+
100
+ gr.Tab("").Markdown('''
101
  ![note](https://huggingface.co/spaces/Blane187/Ilaria_RVC_mod/resolve/main/blane187'snote.png)
102
+ ''')
103
+
104
  app.queue(max_size=1022).launch(share=False)
105
 
106