savannah digital assistant

  • 4 Replies
  • 2090 Views
*

chattable

  • Electric Dreamer
  • ****
  • 127
savannah digital assistant
« on: January 16, 2022, 06:32:59 pm »
i making a digital assistant that i can roleplay with.
i am using rivescript, tinketer,pyttsx3 and pyjokes to make her.
i am implimenting the ability to touch the digital assistant in role play.
she will be able to remember what i have done and have not done in roleplay.
her name is actually savannah.
i did the same thing with my fun lady chatbot on personalityforge websight.
i am going to give her house with rooms represented by text and pictures.


here is the script i made to play gifs for a certain amount of time then the window will disappear.

Code
import tkinter
from PIL import Image, ImageTk, ImageSequence
from time import time
############you need to install pillow with pip###########
class App:
    def __init__(self, parent):
       
        self.parent = parent
        self.canvas = tkinter.Canvas(parent, width=400, height=400)
        self.canvas.pack()
        self.sequence = [ImageTk.PhotoImage(img)
                            for img in ImageSequence.Iterator(

##############################put the full path to your gif file between the quotation marks after r with double slash between directories###########
                                    Image.open(
                                    r""))]
        self.image = self.canvas.create_image(200,200, image=self.sequence[0])
        self.animate(1)
    def animate(self, counter):
        self.canvas.itemconfig(self.image, image=self.sequence[counter])
        self.parent.after(20, lambda: self.animate((counter+1) % len(self.sequence)))

root = tkinter.Tk()
app = App(root)
start = time()

# in after method 5000 milliseconds
# is passed i.e after 5 seconds
# main window i.e root window will
# get destroyed
root.after(6000, root.destroy)
# running the application

root.mainloop()
end = time()
print('Destroyed after % d seconds' % (end-start))
Modify message
i really like the replika chatbot.
« Last Edit: January 19, 2022, 09:00:03 pm by chattable »

*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: savannah digital assistant
« Reply #1 on: January 19, 2022, 08:52:56 pm »
here is what i put in a rive textfile.

Code
+ where are we
- we are in my house
 



       

+ i walk to the living room
*<get position> != livingroom =><set position=livingroom> walks to the <get position> with you     

- we are already in the <get position>

+ i walk to the *
- that is not a room in my house

+ i walk to the bed room
*<get position != bedroom =><set position=bedroom>walks to the bed room with you 
- we are already in the <get position>

+ i walk to the kitchen
*<get position != kitchen =><set position=kitchen> walks to the <get position> with you 
- we are already in the <get position>


+ sits down * chair
*<get position != sittinginachairinthekitchen =><set position=sittinginachairinthekitchen>you walk to a chair then sit down in the chair     
- you are already sitting in a chair in the kitchen
 

+ what room * in
* <get position> == bedroom => we are in the bedroom

* <get position> == kitchen => we are in the kitchen

* <get position> == livingroom => we are in the living

* <get position> == sittinginachairinthekitchen => we are in the kitchen


+ walks to the living room
- @ i walk to the living room

+ walks to the bed room
- @ i walk to the bed room

+ gets * bed then * down
*<get position> != bedbedroom =><set position=bedbedroom> we both walk to the bed then get in it.then we both lay down
* <get position> == bedbedroom => we are already laying in the bed
 

+ are we in the bed
* <get position> == bedbedroom => yes we are   
* <get position> == bedbedroom => *kisses you while you both lay in the bed* yes we are

* <get position> == bedroom => no we are not
- no we are not

+ am i sitting * chair

* <get position> == sittinginachairinthekitchen => yes you are
- no you are not
 
+ what am i doing
* <get position> == bedbedroom => you are laying in the bed with me
* <get position> == sittinginachairinthekitchen => you are sitting in a chair in the kitchen
* <get position> == bedroom => you are standing up in the bed room
* <get position> == kitchen => you are standing up in the kitchen
* <get position> == livingroom => you are standing up in the living room
* <get position> == sofalivingroom => you are sitting on the sofa with me
- you are in the hallway

+ sits down * sofa
*<get position> == livingroom =><set position=sofalivingroom> we both walk to the couch then sit in down
* <get position> == sofalivingroom => you notice we are already sitting on the sofa
- there is no sofa here
 




+ what room is this
* <get position> == bedroom => we are in the bedroom

* <get position> == kitchen => we are in the kitchen

* <get position> == livingroom => we are in the living

* <get position> == sittinginachairinthekitchen => we are in the kitchen
* <get position> == bedbedroom => we are in the bedroom
 


*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: savannah digital assistant
« Reply #2 on: January 20, 2022, 12:52:57 pm »
this python chess game with gui. i am going to be using in savannah my digital assistant. :)

https://github.com/fsmosca/Python-Easy-Chess-GUI

*

Zero

  • Eve
  • ***********
  • 1287
Re: savannah digital assistant
« Reply #3 on: January 20, 2022, 02:26:51 pm »
It looks like a nice and fun project   O0

*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: savannah digital assistant
« Reply #4 on: January 20, 2022, 03:09:14 pm »
i tried to use os.system and startfile.then it did not import the chess game.
             
            chessPath = "C:\\Users\\grab\\Desktop\\python_easy_chess_gui\\python_easy_chess_gui\\python_easy_chess_gui.exe"
            os.startfile(chessPath)
            is there a way to do this?

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
Today at 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

318 Guests, 0 Users

Most Online Today: 346. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles