Spaces:
Paused
Paused
Download app.py from imseldrith/Z1: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/spaces/imseldrith/Z1/resolve/main/app.py
- Command line
-
hf download hf://spaces/imseldrith/Z1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/imseldrith/Z1/resolve/main/app.py
213 Bytes
| import subprocess | |
| import gradio as gr | |
| def n(hi): | |
| x = hi +" hi!" | |
| return x,subprocess.run("python3 bot.py",shell=True) | |
| gr.Interface(fn=n, inputs="text",outputs=["text","text"],live=True).launch(debug=True) | |