docker_test / main.py
Yusin's picture
Update main.py
eae300a
raw
history blame
345 Bytes
from fastapi import FastAPI
import os
session_token = os.environ.get('SessionToken')
conversation_id = os.environ.get('conversation_id')
from revChatGPT.ChatGPT import Chatbot
chatbot = Chatbot({"session_token": session_token}) # You can start a custom conversation
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World!"}