Kabatubare
commited on
Commit
•
9d2ce4b
1
Parent(s):
fb7b6ea
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,8 @@ This tool embeds a unique, invisible watermark into your audio files to mark the
|
|
141 |
with gr.Column(scale=6):
|
142 |
gr.Markdown("""**How to Detect a Watermark in Your Audio**
|
143 |
Use this feature to check if an audio file contains a specific watermark. Here's how:
|
144 |
-
1. **Upload the Audio File
|
|
|
145 |
2. **Enter Original Hex Message**: If you know the hexadecimal code of the watermark, enter it here for a precise search.
|
146 |
3. **Detect Watermark**: Click to analyze the audio for your watermark.
|
147 |
4. **Review Results**: Find out whether your watermark was detected and if the detected code matches your input.
|
@@ -154,16 +155,8 @@ Use this feature to check if an audio file contains a specific watermark. Here's
|
|
154 |
match_result_output = gr.Textbox(label="Match Result")
|
155 |
detect_watermark_button.click(fn=detect_watermark, inputs=[audio_input_detect_watermark, original_hex_input], outputs=[watermark_detection_output, detected_message_output, match_result_output])
|
156 |
|
157 |
-
return demo
|
158 |
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
original_hex_input = gr.Textbox(label="Original Hex Message for Comparison", placeholder="Enter the original hex message here")
|
163 |
-
detect_watermark_button = gr.Button("Detect Watermark")
|
164 |
-
watermark_detection_output = gr.Textbox(label="Watermark Detection Result")
|
165 |
-
detected_message_output = gr.Textbox(label="Detected Hex Message")
|
166 |
-
match_result_output = gr.Textbox(label="Match Result")
|
167 |
-
detect_watermark_button.click(fn=detect_watermark, inputs=[audio_input_detect_watermark, original_hex_input], outputs=[watermark_detection_output, detected_message_output, match_result_output])
|
168 |
-
|
169 |
-
demo.launch()
|
|
|
141 |
with gr.Column(scale=6):
|
142 |
gr.Markdown("""**How to Detect a Watermark in Your Audio**
|
143 |
Use this feature to check if an audio file contains a specific watermark. Here's how:
|
144 |
+
1. **Upload the Audio File
|
145 |
+
**: Select the audio file you want to check.
|
146 |
2. **Enter Original Hex Message**: If you know the hexadecimal code of the watermark, enter it here for a precise search.
|
147 |
3. **Detect Watermark**: Click to analyze the audio for your watermark.
|
148 |
4. **Review Results**: Find out whether your watermark was detected and if the detected code matches your input.
|
|
|
155 |
match_result_output = gr.Textbox(label="Match Result")
|
156 |
detect_watermark_button.click(fn=detect_watermark, inputs=[audio_input_detect_watermark, original_hex_input], outputs=[watermark_detection_output, detected_message_output, match_result_output])
|
157 |
|
158 |
+
return demo
|
159 |
|
160 |
+
if __name__ == "__main__":
|
161 |
+
demo = gradio_interface()
|
162 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|