add age with placeholder text
Browse files
app.py
CHANGED
@@ -4,12 +4,12 @@
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
-
def greet(
|
8 |
-
return "Hello " +
|
9 |
|
10 |
|
11 |
|
12 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
13 |
description = "A diabetes-related amputation machine learning model trained on the diabetes dataset from the Inkosi Albert Luthuli Central Hospital (IALCH), KwaZulu-Natal, South Africa, using Pycaret. Created as a demo with Gradio and hosted on HuggingFace Spaces"
|
14 |
-
iface = gr.Interface(fn=greet, title=title, description=description, inputs="
|
15 |
iface.launch()
|
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
+
def greet(age):
|
8 |
+
return "Hello " + age + "!!"
|
9 |
|
10 |
|
11 |
|
12 |
title = "DIabetes-related Amputation Risk Calculator (DIARC)"
|
13 |
description = "A diabetes-related amputation machine learning model trained on the diabetes dataset from the Inkosi Albert Luthuli Central Hospital (IALCH), KwaZulu-Natal, South Africa, using Pycaret. Created as a demo with Gradio and hosted on HuggingFace Spaces"
|
14 |
+
iface = gr.Interface(fn=greet, title=title, description=description, gr.inputs.Textbox(placeholder="Age Here..."), outputs="text")
|
15 |
iface.launch()
|