File size: 232 Bytes
aa0eed8
cb5856a
aa0eed8
 
 
cb5856a
 
aa0eed8
cb5856a
1
2
3
4
5
6
7
8
9
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()