DevMiser / Lumina

Lumina - AI Art Generator for Your TV
105 stars 8 forks source link

End the program #5

Open derfeznoj opened 6 months ago

derfeznoj commented 6 months ago

I've tried mightily to 'End the program', 'Close the program', 'Exit the program' and all I'm doing is burning up API costs. It either misinterprets 'end' as 'and'. or it accepts the various commands as an API request and either generates an API error or returns some sort of goofy image. Is there an alternate way of stopping the program other than cycling power to the RP? I can use a ctrl-C if I'm connected headless or w/keyboard, but I will try to use this unconnected if possible.

You said: Close the program You requested the following image: Close the program

Creating image...

Update: I experimented with the python code:

  1. Extended the silence timeout to 1.2 seconds
  2. Added "Quit the program"

I can now use "Quit the program" to quit the program. I've tried to do something about the marbles in my mouth for years to no avail.

DevMiser commented 6 months ago

It sounds like you solved this. If others have the same issue, please try the following:

Open a terminal and enter the following commands:

cd /home/pi/Lumina sudo nano Lumina.py

Use your keyboard to scroll down to the line that begins with “CloseProgram_list”

You can add additional phrases of your choosing to that list.

For example, you may want to add “Stop”, and see if that works better.

dan06 commented 6 months ago

The real problem is a missing comma at the end of line 47. If you add the comma at the end of the string (like the ones before and after it), all the phrases should work.

DevMiser commented 6 months ago

The comma has been added.