Next-Dining-The-Video-Game/gpt.py

11 lines
244 B
Python

from revChatGPT.ChatGPT import Chatbot
session_token = # Get your own
chatbot = Chatbot({'session_token': session_token})
print(chatbot.ask(open('prompt').read())['message'])
while True:
i = input()
print(chatbot.ask(i)['message'])