Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -226,7 +226,6 @@ def process_video(video_path):
|
|
| 226 |
|
| 227 |
def create_gradio_interface():
|
| 228 |
with gr.Blocks(title="Audio Steganography", css="footer{display:none !important}", theme=gr.themes.Soft(primary_hue="green", secondary_hue="green", spacing_size="sm", radius_size="lg")) as txt2spec:
|
| 229 |
-
gr.Markdown("Caution! The sound is too loud. It is recommended to familiarize yourself with audio steganography before using this application.")
|
| 230 |
with gr.Tab("Text to Spectrogram"):
|
| 231 |
with gr.Group():
|
| 232 |
text = gr.Textbox(lines=2, placeholder="Enter your text:", label="Enter the text you want to convert to spectrogram:")
|
|
@@ -240,6 +239,7 @@ def create_gradio_interface():
|
|
| 240 |
|
| 241 |
with gr.Column(variant="panel"):
|
| 242 |
with gr.Group():
|
|
|
|
| 243 |
output_audio = gr.Audio(type="filepath", label="Generated audio")
|
| 244 |
output_spectrogram = gr.Image(type="filepath", label="Spectrogram")
|
| 245 |
|
|
@@ -252,6 +252,7 @@ def create_gradio_interface():
|
|
| 252 |
convert_button = gr.Button("Convert to audio", variant="primary", size="lg")
|
| 253 |
|
| 254 |
with gr.Column(variant="panel"):
|
|
|
|
| 255 |
output_audio_from_image = gr.Audio(type="filepath", label="Generated audio")
|
| 256 |
|
| 257 |
convert_button.click(gradio_image_to_audio_fn, inputs=[upload_image], outputs=[output_audio_from_image])
|
|
|
|
| 226 |
|
| 227 |
def create_gradio_interface():
|
| 228 |
with gr.Blocks(title="Audio Steganography", css="footer{display:none !important}", theme=gr.themes.Soft(primary_hue="green", secondary_hue="green", spacing_size="sm", radius_size="lg")) as txt2spec:
|
|
|
|
| 229 |
with gr.Tab("Text to Spectrogram"):
|
| 230 |
with gr.Group():
|
| 231 |
text = gr.Textbox(lines=2, placeholder="Enter your text:", label="Enter the text you want to convert to spectrogram:")
|
|
|
|
| 239 |
|
| 240 |
with gr.Column(variant="panel"):
|
| 241 |
with gr.Group():
|
| 242 |
+
gr.Markdown("Caution! The sound is too loud. It is recommended to familiarize yourself with audio steganography before using this application.")
|
| 243 |
output_audio = gr.Audio(type="filepath", label="Generated audio")
|
| 244 |
output_spectrogram = gr.Image(type="filepath", label="Spectrogram")
|
| 245 |
|
|
|
|
| 252 |
convert_button = gr.Button("Convert to audio", variant="primary", size="lg")
|
| 253 |
|
| 254 |
with gr.Column(variant="panel"):
|
| 255 |
+
gr.Markdown("Caution! The sound is too loud. It is recommended to familiarize yourself with audio steganography before using this application.")
|
| 256 |
output_audio_from_image = gr.Audio(type="filepath", label="Generated audio")
|
| 257 |
|
| 258 |
convert_button.click(gradio_image_to_audio_fn, inputs=[upload_image], outputs=[output_audio_from_image])
|