Spaces:
Sleeping
Sleeping
Download helloworld.py from yes2code/Text-Summarization: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/spaces/yes2code/Text-Summarization/resolve/09848aa413e5a7fcb726bbb82e028b47e55edbf4/helloworld.py
- Command line
-
hf download hf://spaces/yes2code/Text-Summarization@09848aa413e5a7fcb726bbb82e028b47e55edbf4/helloworld.py
-
curl -L -o helloworld.py https://huggingface.co/spaces/yes2code/Text-Summarization/resolve/09848aa413e5a7fcb726bbb82e028b47e55edbf4/helloworld.py
306 Bytes
| import gradio as gr | |
| with gr.Blocks(analytics_enabled=False, title="Test") as app: | |
| gr.Label('Hello World!') | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| #app = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| #print('before launch') | |
| app.launch(share=True,) | |
| #print('after launch') # executes | |