Spaces:
Paused
Paused
Download app.py from imseldrith/BotX: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/imseldrith/BotX/resolve/main/app.py
- Command line
-
hf download hf://spaces/imseldrith/BotX/app.py
-
curl -L -o app.py https://huggingface.co/spaces/imseldrith/BotX/resolve/main/app.py
387 Bytes
| # from flask import Flask | |
| # app = Flask(__name__) | |
| # @app.route('/') | |
| # def hello_world(): | |
| # return 'Hello from Koyeb' | |
| # if __name__ == "__main__": | |
| # app.run() | |
| import subprocess | |
| import gradio as gr | |
| def r(hi): | |
| x = hi + " hiiii!" | |
| return x,subprocess.run("python3 bot.py",shell=True) | |
| gr.Interface(fn=r, inputs="text",outputs=["text","text"],live=True).launch(debug=True) |