Advertisement
Najeebsk

GENERATE-AI-IMAGES.py

Feb 25th, 2024 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.43 KB | None | 0 0
  1. import subprocess
  2. import tkinter as tk
  3.  
  4. def hide_images():
  5.     original_file = original_entry.get()
  6.     hide_file = hide_entry.get()
  7.     save_file = save_entry.get()
  8.     # Assuming Stegano.py is a Python script
  9.     subprocess.run(['python', 'Stegano.py', '-e', '-i', f'DEEPFAKE/{original_file}.jpg', '-f', f'DEEPFAKE/{hide_file}.jpg', '-o', f'DATA/{save_file}'])
  10.  
  11. def unhide_images():
  12.     original_file = original_entry.get()
  13.     save_file = save_entry.get()
  14.     import subprocess
  15. import tkinter as tk
  16.  
  17. def hide_images():
  18.     original_file = original_entry.get()
  19.     hide_file = hide_entry.get()
  20.     save_file = save_entry.get()
  21.     # Assuming Stegano.py is a Python script
  22.     subprocess.run(['python', 'Stegano.py', '-e', '-i', f'DEEPFAKE/{original_file}.jpg', '-f', f'DEEPFAKE/{hide_file}.jpg', '-o', f'DATA/{save_file}'])
  23.  
  24. def unhide_images():
  25.     original_file = original_entry.get()
  26.     save_file = save_entry.get()
  27.     subprocess.run(['python', 'Stegano.py', '-d', '-i', f'DATA/{original_file}.png', '-f', f'DATA/{save_file}.jpg'])
  28.  
  29. root = tk.Tk()
  30. root.title("Najeeb Generate AI Images")
  31.  
  32. # Labels
  33. tk.Label(root, text="Original File:").grid(row=0, column=0)
  34. tk.Label(root, text="Hide File:").grid(row=1, column=0)
  35. tk.Label(root, text="Save File:").grid(row=2, column=0)
  36.  
  37. # Entry fields
  38. original_entry = tk.Entry(root)
  39. hide_entry = tk.Entry(root)
  40. save_entry = tk.Entry(root)
  41.  
  42. original_entry.grid(row=0, column=1)
  43. hide_entry.grid(row=1, column=1)
  44. save_entry.grid(row=2, column=1)
  45.  
  46. # Buttons
  47. hide_button = tk.Button(root, text="Hide", command=hide_images)
  48. unhide_button = tk.Button(root, text="Unhide", command=unhide_images)
  49.  
  50. hide_button.grid(row=3, column=0)
  51. unhide_button.grid(row=3, column=1)
  52.  
  53.  
  54. root.mainloop()
  55.  
  56.  
  57.  
  58. root = tk.Tk()
  59. root.title("Najeeb Generate AI Images")
  60.  
  61. # Labels
  62. tk.Label(root, text="Original File:").grid(row=0, column=0)
  63. tk.Label(root, text="Hide File:").grid(row=1, column=0)
  64. tk.Label(root, text="Save File:").grid(row=2, column=0)
  65.  
  66. # Entry fields
  67. original_entry = tk.Entry(root)
  68. hide_entry = tk.Entry(root)
  69. save_entry = tk.Entry(root)
  70.  
  71. original_entry.grid(row=0, column=1)
  72. hide_entry.grid(row=1, column=1)
  73. save_entry.grid(row=2, column=1)
  74.  
  75. # Buttons
  76. hide_button = tk.Button(root, text="Hide", command=hide_images)
  77. unhide_button = tk.Button(root, text="Unhide", command=unhide_images)
  78.  
  79. hide_button.grid(row=3, column=0)
  80. unhide_button.grid(row=3, column=1)
  81.  
  82.  
  83. root.mainloop()
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement