Spaces:
Runtime error
Runtime error
Download app.py from krushna/docker_trail_1: direct link, hf CLI and curl.
- Browser
- Download file 244 Bytes
-
https://huggingface.co/spaces/krushna/docker_trail_1/resolve/main/app.py
- Command line
-
hf download hf://spaces/krushna/docker_trail_1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/krushna/docker_trail_1/resolve/main/app.py
244 Bytes
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| def run(): | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch(server_name="0.0.0.0", server_port=7860) | |
| if __name__ == "__main__": | |
| run() |