bstraehle's picture
Update app.py
cb5856a verified
raw
history blame
232 Bytes
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()