Hev832 commited on
Commit
56beaea
·
verified ·
1 Parent(s): 2fbc44d

Update steganography.py

Browse files
Files changed (1) hide show
  1. steganography.py +42 -3
steganography.py CHANGED
@@ -83,6 +83,46 @@ def image_to_spectrogram_audio(image_path, sr=22050):
83
  sf.write(img2audio_path, y, sr)
84
  return img2audio_path
85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  # Gradio interface
87
  with gr.Blocks(
88
  title='Audio Steganography',
@@ -90,6 +130,7 @@ with gr.Blocks(
90
  ) as iface:
91
 
92
  with gr.Group():
 
93
  with gr.Row(variant='panel'):
94
  with gr.Column():
95
  gr.HTML("<center><h2><a href='https://t.me/pol1trees'>Telegram Channel</a></h2></center>")
@@ -101,9 +142,7 @@ with gr.Blocks(
101
  gr.HTML("<center><h2><a href='https://github.com/Bebra777228/Audio-Steganography'>GitHub</a></h2></center>")
102
 
103
  with gr.Tab("INFO"):
104
- with open("infor.md", "r", encoding="utf8") as f:
105
- info = f.read()
106
- gr.Markdown(value=info)
107
  with gr.Tab("Text to Spectrogram"):
108
  gr.HTML("<center><h2>Oh my god people, learn to read. Go to the “INFO” tab, it says what this interface is and what it is for, don't be idiots.</h2></center>")
109
  with gr.Group():
 
83
  sf.write(img2audio_path, y, sr)
84
  return img2audio_path
85
 
86
+
87
+
88
+ informstion = """
89
+
90
+
91
+ <!DOCTYPE html>
92
+ <html lang="en">
93
+ <head>
94
+ <meta charset="UTF-8">
95
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
96
+ <title>Steganography Information</title>
97
+ </head>
98
+ <body>
99
+
100
+ <h1>Ha-Ha-Ha, I'm laughing at you.</h1>
101
+ <p>People, before using this interface, read about what Steganography is.</p>
102
+
103
+ <h2>What is STEGANOGRAPHY?</h2>
104
+ <p>
105
+ Steganography is a method of hiding information within other information or a physical object in such a way
106
+ that it cannot be detected. Using steganography, you can hide almost any digital content, including texts,
107
+ images, audio, and video files.
108
+ </p>
109
+ <p>
110
+ In this interface, steganography is used to hide text or an image in the spectrogram of a sound.
111
+ </p>
112
+
113
+ <img src="https://github.com/user-attachments/assets/972b9e72-d8dc-43f7-a57a-a09a44aa5419" alt="Hidden Image 1">
114
+ <img src="https://github.com/user-attachments/assets/3ceec1ff-afce-4b4a-a387-2b6e589234f7" alt="Hidden Image 2">
115
+
116
+ </body>
117
+ </html>
118
+
119
+
120
+
121
+ """
122
+
123
+
124
+
125
+
126
  # Gradio interface
127
  with gr.Blocks(
128
  title='Audio Steganography',
 
130
  ) as iface:
131
 
132
  with gr.Group():
133
+ gr.Markdown("# Audio Steganography")
134
  with gr.Row(variant='panel'):
135
  with gr.Column():
136
  gr.HTML("<center><h2><a href='https://t.me/pol1trees'>Telegram Channel</a></h2></center>")
 
142
  gr.HTML("<center><h2><a href='https://github.com/Bebra777228/Audio-Steganography'>GitHub</a></h2></center>")
143
 
144
  with gr.Tab("INFO"):
145
+ gr.HTML(informstion)
 
 
146
  with gr.Tab("Text to Spectrogram"):
147
  gr.HTML("<center><h2>Oh my god people, learn to read. Go to the “INFO” tab, it says what this interface is and what it is for, don't be idiots.</h2></center>")
148
  with gr.Group():