Spaces:
Paused
Paused
Download app.py from imseldrith/Adv_bot: direct link, hf CLI and curl.
- Browser
- Download file 212 Bytes
-
https://huggingface.co/spaces/imseldrith/Adv_bot/resolve/main/app.py
- Command line
-
hf download hf://spaces/imseldrith/Adv_bot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/imseldrith/Adv_bot/resolve/main/app.py
212 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) |