File size: 498 Bytes
edc2d41 eac07ff 6c5f1d9 1e8d0b0 6c5f1d9 1e8d0b0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
def predict_length(sep_length, sep_width, pet_length, pet_width):
return f"Sepal Length: {sep_length}, Sepal Width: {sep_width}, Petal Length: {pet_length}, Petal Width: {pet_width}"
iface = gr.Interface(
fn=predict_length,
inputs=[
gr.Textbox(label="Sepal Length"),
gr.Textbox(label="Sepal Width"),
gr.Textbox(label="Petal Length"),
gr.Textbox(label="Petal Width"),
],
outputs="text",
live=True
)
iface.launch()
|