naughtondale's picture
Update app.py
a7fe07a
raw
history blame contribute delete
304 Bytes
import gradio as gr
import interpreter
# interpreter setup
def chat(input):
# chat logic
def reset():
interpreter.reset()
return "Chat history reset"
iface = gr.Interface(
fn=chat,
inputs="text",
outputs="text"
)
iface.queue(reset, [], "button", concurrency_count=1)
iface.launch()