I found your small app and just wanted to give it a try. It's quite nice for playing around and easy to use.
The verbose mode is broken, because of a typo/ too many parameters in currentTime.strftime. The function only supports 1 parameter.
Fix:
print("\nPrompt:", sd_prompt, "\nOrientation:", orientation, "\nStyle:", style, "\nIP:", ip, "\nTime:", currentTime.strftime("%H:%M:%S"), "\nTranslated Prompt:", translated_prompt)
Another small improvement, would be to supply the A1111 webui url/port as a complete url including http/ https. Otherwise you run into the following error:
No connection adapters were found for {url!r}
Fix:
webui_url = "http://127.0.0.1:7860"