Spaces:
Runtime error
Runtime error
File size: 304 Bytes
4a65842 7c6b461 4a65842 a7fe07a 4a65842 92c075b 7c6b461 a7fe07a ae024e4 a7fe07a ae024e4 327cc32 92c075b 4a65842 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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() |