2023-01-15 04:58:03 +00:00
|
|
|
from revChatGPT.ChatGPT import Chatbot
|
|
|
|
|
2023-01-15 19:27:55 +00:00
|
|
|
session_token = # Get your own
|
2023-01-15 04:58:03 +00:00
|
|
|
|
|
|
|
chatbot = Chatbot({'session_token': session_token})
|
|
|
|
|
2023-01-15 19:27:55 +00:00
|
|
|
print(chatbot.ask(open('prompt').read())['message'])
|
2023-01-15 04:58:03 +00:00
|
|
|
|
|
|
|
while True:
|
|
|
|
i = input()
|
|
|
|
print(chatbot.ask(i)['message'])
|