File size: 496 Bytes
6a737a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

def my_function(input1, input2):
    # Process the inputs (e.g., concatenate strings, perform calculations)
    result = f"You entered: {input1} and {input2}"
    return result

# Create the Gradio interface
interface = gr.Interface(fn=my_function, 
                          inputs=["text", "text"], 
                          outputs="text", 
                          title="Two Input Demo", 
                          description="Enter two values:")

interface.launch()