Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
webbrowser.open_new('www.google.com/search?q=' + userInput3)