Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
CHANGED
|
@@ -4,4 +4,5 @@ def greet_with_age(name: str, age: int) -> str:
|
|
| 4 |
return f"Hello, {name}! You are {age} years old."
|
| 5 |
|
| 6 |
# Inputs as a list: [textbox for name, number input for age]
|
| 7 |
-
demo = gr.Interface(fn=greet_with_age, inputs=["text", "number"], outputs="text")
|
|
|
|
|
|
| 4 |
return f"Hello, {name}! You are {age} years old."
|
| 5 |
|
| 6 |
# Inputs as a list: [textbox for name, number input for age]
|
| 7 |
+
demo = gr.Interface(fn=greet_with_age, inputs=["text", "number"], outputs="text")
|
| 8 |
+
demo.launch()
|