Download app.py from dsaigc/pub_test: direct link, hf CLI and curl.
- Browser
- Download file 235 Bytes
-
https://huggingface.co/spaces/dsaigc/pub_test/resolve/main/app.py
- Command line
-
hf download hf://spaces/dsaigc/pub_test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dsaigc/pub_test/resolve/main/app.py
235 Bytes
| import os, sys | |
| import gradio as gr | |
| def greet(name): | |
| #chat_api = os.environ['chat_api'] | |
| return "welcome" + name + ' huggingface test' | |
| iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| iface.launch() |