Spaces:
Paused
Paused
Download app.py from Significant/testspac22: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/Significant/testspac22/resolve/main/app.py
- Command line
-
hf download hf://spaces/Significant/testspac22/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Significant/testspac22/resolve/main/app.py
410 Bytes
| import gradio as gr | |
| import os | |
| HF_TEST_USER_NAME = os.environ["HF_TEST_USER_NAME"] | |
| HF_PASS = os.environ["HF_PASS"] | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch(auth=(HF_TEST_USER_NAME, HF_PASS), ssr_mode=False) | |
| # Running on local URL: http://0.0.0.0:7860, with SSR ⚡ (experimental, to disable set `ssr_mode=False` in `launch()`) |