demo-space / app.py
shivanikerai's picture
Create app.py
6a737a4 verified
raw
history blame
No virus
496 Bytes
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()