Spaces:
Running
Running
Update steganography.py
Browse files- steganography.py +6 -6
steganography.py
CHANGED
@@ -146,10 +146,10 @@ with gr.Blocks(title='Audio Steganography', css="footer{display:none !important}
|
|
146 |
upload_image = gr.Image(type="filepath", label="Upload image")
|
147 |
convert_button = gr.Button("Convert to audio", variant='primary', size="lg")
|
148 |
|
149 |
-
|
150 |
-
|
151 |
|
152 |
-
|
153 |
|
154 |
with gr.Tab("Audio Spectrogram"):
|
155 |
with gr.Group():
|
@@ -157,9 +157,9 @@ with gr.Blocks(title='Audio Steganography', css="footer{display:none !important}
|
|
157 |
upload_audio = gr.Audio(type="filepath", label="Upload audio", scale=3)
|
158 |
decode_button = gr.Button("Show spectrogram", variant='primary', size="lg")
|
159 |
|
160 |
-
|
161 |
-
|
162 |
|
163 |
-
|
164 |
|
165 |
txt2spec.launch(share=True)
|
|
|
146 |
upload_image = gr.Image(type="filepath", label="Upload image")
|
147 |
convert_button = gr.Button("Convert to audio", variant='primary', size="lg")
|
148 |
|
149 |
+
with gr.Column(variant='panel'):
|
150 |
+
output_audio_from_image = gr.Audio(type="filepath", label="Generated audio")
|
151 |
|
152 |
+
convert_button.click(gradio_image_to_audio_fn, inputs=[upload_image], outputs=[output_audio_from_image])
|
153 |
|
154 |
with gr.Tab("Audio Spectrogram"):
|
155 |
with gr.Group():
|
|
|
157 |
upload_audio = gr.Audio(type="filepath", label="Upload audio", scale=3)
|
158 |
decode_button = gr.Button("Show spectrogram", variant='primary', size="lg")
|
159 |
|
160 |
+
with gr.Column(variant='panel'):
|
161 |
+
decoded_image = gr.Image(type="filepath", label="Audio Spectrogram")
|
162 |
|
163 |
+
decode_button.click(gradio_decode_fn, inputs=[upload_audio], outputs=[decoded_image])
|
164 |
|
165 |
txt2spec.launch(share=True)
|