shivanikerai commited on
Commit
6a737a4
1 Parent(s): 6637765

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def my_function(input1, input2):
4
+ # Process the inputs (e.g., concatenate strings, perform calculations)
5
+ result = f"You entered: {input1} and {input2}"
6
+ return result
7
+
8
+ # Create the Gradio interface
9
+ interface = gr.Interface(fn=my_function,
10
+ inputs=["text", "text"],
11
+ outputs="text",
12
+ title="Two Input Demo",
13
+ description="Enter two values:")
14
+
15
+ interface.launch()