Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def process_text(input_text):
|
4 |
+
return input_text.upper()
|
5 |
+
|
6 |
+
# Define the Gradio interface
|
7 |
+
interface = gr.Interface(
|
8 |
+
fn=process_text, # Function to process input
|
9 |
+
inputs=gr.Textbox(label="Enter text"), # Input component
|
10 |
+
outputs=gr.Textbox(label="Output") # Output component
|
11 |
+
)
|
12 |
+
|
13 |
+
# Launch the Gradio app
|
14 |
+
interface.launch()
|