Spaces:
Runtime error
Runtime error
| 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() |