savannah digital assistant

  • 4 Replies
  • 2702 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?

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00: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

Users Online

413 Guests, 0 Users

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

Articles