Spaces:
Runtime error
Runtime error
Download app.py from AITECHPRODUCTS/open-interpreter: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/spaces/AITECHPRODUCTS/open-interpreter/resolve/main/app.py
- Command line
-
hf download hf://spaces/AITECHPRODUCTS/open-interpreter/app.py
-
curl -L -o app.py https://huggingface.co/spaces/AITECHPRODUCTS/open-interpreter/resolve/main/app.py
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() |