Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- import tkinter as tk
- def hide_images():
- original_file = original_entry.get()
- hide_file = hide_entry.get()
- save_file = save_entry.get()
- # Assuming Stegano.py is a Python script
- subprocess.run(['python', 'Stegano.py', '-e', '-i', f'DEEPFAKE/{original_file}.jpg', '-f', f'DEEPFAKE/{hide_file}.jpg', '-o', f'DATA/{save_file}'])
- def unhide_images():
- original_file = original_entry.get()
- save_file = save_entry.get()
- import subprocess
- import tkinter as tk
- def hide_images():
- original_file = original_entry.get()
- hide_file = hide_entry.get()
- save_file = save_entry.get()
- # Assuming Stegano.py is a Python script
- subprocess.run(['python', 'Stegano.py', '-e', '-i', f'DEEPFAKE/{original_file}.jpg', '-f', f'DEEPFAKE/{hide_file}.jpg', '-o', f'DATA/{save_file}'])
- def unhide_images():
- original_file = original_entry.get()
- save_file = save_entry.get()
- subprocess.run(['python', 'Stegano.py', '-d', '-i', f'DATA/{original_file}.png', '-f', f'DATA/{save_file}.jpg'])
- root = tk.Tk()
- root.title("Najeeb Generate AI Images")
- # Labels
- tk.Label(root, text="Original File:").grid(row=0, column=0)
- tk.Label(root, text="Hide File:").grid(row=1, column=0)
- tk.Label(root, text="Save File:").grid(row=2, column=0)
- # Entry fields
- original_entry = tk.Entry(root)
- hide_entry = tk.Entry(root)
- save_entry = tk.Entry(root)
- original_entry.grid(row=0, column=1)
- hide_entry.grid(row=1, column=1)
- save_entry.grid(row=2, column=1)
- # Buttons
- hide_button = tk.Button(root, text="Hide", command=hide_images)
- unhide_button = tk.Button(root, text="Unhide", command=unhide_images)
- hide_button.grid(row=3, column=0)
- unhide_button.grid(row=3, column=1)
- root.mainloop()
- root = tk.Tk()
- root.title("Najeeb Generate AI Images")
- # Labels
- tk.Label(root, text="Original File:").grid(row=0, column=0)
- tk.Label(root, text="Hide File:").grid(row=1, column=0)
- tk.Label(root, text="Save File:").grid(row=2, column=0)
- # Entry fields
- original_entry = tk.Entry(root)
- hide_entry = tk.Entry(root)
- save_entry = tk.Entry(root)
- original_entry.grid(row=0, column=1)
- hide_entry.grid(row=1, column=1)
- save_entry.grid(row=2, column=1)
- # Buttons
- hide_button = tk.Button(root, text="Hide", command=hide_images)
- unhide_button = tk.Button(root, text="Unhide", command=unhide_images)
- hide_button.grid(row=3, column=0)
- unhide_button.grid(row=3, column=1)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement