import gradio as gr import openai, os, random client = openai.OpenAI(api_key = os.getenv("OPENAI_API_KEY")) def random_response(message, history): return random.choice(["Yes", "No"]) gr.ChatInterface(random_response).launch()