diff --git a/chatbot.py b/chatbot.py index 958feff..8148cb1 100644 --- a/chatbot.py +++ b/chatbot.py @@ -61,9 +61,9 @@ print("hi ", "Setting location through ip bias, Change location?") change_location = False while True: - speech_type = raw_input('Speech/Text: ') + speech_type = input('Speech/Text: ') if speech_type.lower() != "speech": - translate = raw_input("Type: ") + translate = input("Type: ") else: now = datetime.datetime.now() r = sr.Recognizer() @@ -186,4 +186,4 @@ engine.say(wikipedia.summary(translate)) engine.runAndWait() userInput3 = input("or else search in google") - webbrowser.open_new('www.google.com/search?q=' + userInput3) \ No newline at end of file + webbrowser.open_new('www.google.com/search?q=' + userInput3)