GUI is "graphical user interface" and UI is just "user interface." GUI is a subset of UI. UI can include non-graphical interfaces such as screen readers or command line interfaces which aren't considered GUI.
https://stackoverflow.com/questions/3191844/what-is-the-difference-between-gui-and-ui