import gradio as gr from revChatGPT.V1 import Chatbot import os email = os.environ.get('email') password = os.environ.get('password') access_token = None session_token = None def configure_chatbot(): config = {} config.update({"email": email, "password": password}) global chatbot chatbot = Chatbot(config=config) login_method = ['Email/Password'] def ask_bot(prompt): message = "" for data in chatbot.ask(prompt): message = data["message"] return message def chatgpt_clone(inputs, history): history = history or [] output = ask_bot(inputs) history.append((inputs, output)) return history, history with gr.Blocks() as demo: gr.Markdown("""