Spaces:
Sleeping
Sleeping
Download Nameandage from vshankar27/Testing: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/spaces/vshankar27/Testing/resolve/main/Nameandage
- Command line
-
hf download hf://spaces/vshankar27/Testing/Nameandage
-
curl -L -o Nameandage https://huggingface.co/spaces/vshankar27/Testing/resolve/main/Nameandage
281 Bytes
| import gradio as gr | |
| def greet_with_age(name: str, age: int) -> str: | |
| return f"Hello, {name}! You are {age} years old." | |
| # Inputs as a list: [textbox for name, number input for age] | |
| demo = gr.Interface(fn=greet_with_age, inputs=["text", "number"], outputs="text") | |
| demo.launch() |