Download app .py from TrinasAI/README: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/TrinasAI/README/resolve/main/app%20.py
- Command line
-
hf download 'hf://spaces/TrinasAI/README/app .py'
-
curl -L -o 'app .py' https://huggingface.co/spaces/TrinasAI/README/resolve/main/app%20.py
197 Bytes
| import gradio as gr | |
| def say_hello(name): | |
| return f"Hello {name}, this is your Hugging Face AI!" | |
| demo = gr.Interface(fn=say_hello, inputs="text", outputs="text", title="Test AI") | |
| demo.launch() |