Spaces:
No application file
No application file
Download app.py from GoodLuckChuck/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/GoodLuckChuck/Final_Assignment_Template/resolve/main/app.py
- Command line
-
hf download hf://spaces/GoodLuckChuck/Final_Assignment_Template/app.py
-
curl -L -o app.py https://huggingface.co/spaces/GoodLuckChuck/Final_Assignment_Template/resolve/main/app.py
312 Bytes
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!" | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| # Launch the demo AT THE MODULE LEVEL (not inside if __name__ == "__main__") | |
| # This is sometimes more reliable on HF Spaces if __main__ isn't triggered as expected. | |
| demo.launch() |