File size: 736 Bytes
be6deff
 
b855d19
 
 
 
 
 
 
 
 
 
cf70e4a
f44bf4c
 
 
 
 
 
 
 
b855d19
f44bf4c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import gradio as gr

def greet(name1, name2, name3, name4, name5):
    # Storing each input in a variable, you can process or save them as you like
    str1 = name1
    str2 = name2
    str3 = name3
    str4 = name4
    str5 = name5
    
    # For the purpose of this example, I'm just returning the values concatenated
    return f"Inputs received: {str1}, {str2}, {str3}, {str4}, {str5}"

# Define 5 text input boxes with labels
input_boxes = [
    gr.inputs.Textbox(label="Name 1regaergar"),
    gr.inputs.Textbox(label="Name 2"),
    gr.inputs.Textbox(label="Name 3"),
    gr.inputs.Textbox(label="Name 4"),
    gr.inputs.Textbox(label="Name 5"),
]

iface = gr.Interface(fn=greet, inputs=input_boxes, outputs="text")
iface.launch()