Spaces:
Running
Running
Update steganography.py
Browse files- steganography.py +5 -4
steganography.py
CHANGED
@@ -109,8 +109,9 @@ with gr.Blocks(title='Audio Steganography', theme=gr.themes.Soft(primary_hue="gr
|
|
109 |
generate_button = gr.Button("Generate")
|
110 |
|
111 |
with gr.Column(variant='panel'):
|
112 |
-
|
113 |
-
|
|
|
114 |
|
115 |
def gradio_interface_fn(text, base_width, height, max_font_size, margin, letter_spacing):
|
116 |
return create_audio_with_spectrogram(text, base_width, height, max_font_size, margin, letter_spacing)
|
@@ -142,8 +143,8 @@ with gr.Blocks(title='Audio Steganography', theme=gr.themes.Soft(primary_hue="gr
|
|
142 |
with gr.Tab("Audio Spectrogram"):
|
143 |
with gr.Group():
|
144 |
with gr.Row(variant='panel'):
|
145 |
-
upload_audio = gr.Audio(type="filepath", label="Upload audio")
|
146 |
-
decode_button = gr.Button("Show spectrogram")
|
147 |
|
148 |
with gr.Column(variant='panel'):
|
149 |
decoded_image = gr.Image(type="filepath", label="Audio Spectrogram")
|
|
|
109 |
generate_button = gr.Button("Generate")
|
110 |
|
111 |
with gr.Column(variant='panel'):
|
112 |
+
with gr.Group():
|
113 |
+
output_audio = gr.Audio(type="filepath", label="Generated audio")
|
114 |
+
output_image = gr.Image(type="filepath", label="Spectrogram")
|
115 |
|
116 |
def gradio_interface_fn(text, base_width, height, max_font_size, margin, letter_spacing):
|
117 |
return create_audio_with_spectrogram(text, base_width, height, max_font_size, margin, letter_spacing)
|
|
|
143 |
with gr.Tab("Audio Spectrogram"):
|
144 |
with gr.Group():
|
145 |
with gr.Row(variant='panel'):
|
146 |
+
upload_audio = gr.Audio(type="filepath", label="Upload audio", scale=3)
|
147 |
+
decode_button = gr.Button("Show spectrogram", scale=2)
|
148 |
|
149 |
with gr.Column(variant='panel'):
|
150 |
decoded_image = gr.Image(type="filepath", label="Audio Spectrogram")
|