Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|