Spaces:
Sleeping
Sleeping
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() | |