
import tkinter as tk
from PIL import Image, ImageTk
from playsound import playsound
import threading

def speak():
    threading.Thread(target=playsound, args=('sue_voice_intro.mp3',)).start()

root = tk.Tk()
root.title("S.U.E. Interface")

# Load and display avatar
avatar = Image.open("SUE_Avatar_Resized.png")
avatar = avatar.resize((512, 512), Image.ANTIALIAS)
avatar_img = ImageTk.PhotoImage(avatar)

avatar_label = tk.Label(root, image=avatar_img)
avatar_label.pack(pady=10)

# Speak Button
speak_btn = tk.Button(root, text="Ask Sue", command=speak, font=("Arial", 14), bg="#333", fg="white")
speak_btn.pack(pady=20)

root.mainloop()
