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/467efa2bf9d8766bab9c2572d99d5f330c5e432e/helloworld.py
- Command line
-
hf download hf://spaces/yes2code/Text-Summarization@467efa2bf9d8766bab9c2572d99d5f330c5e432e/helloworld.py
-
curl -L -o helloworld.py https://huggingface.co/spaces/yes2code/Text-Summarization/resolve/467efa2bf9d8766bab9c2572d99d5f330c5e432e/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 | |