File size: 372 Bytes
a476eb9
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def process_text(input_text):
    return input_text.upper()

# Define the Gradio interface
interface = gr.Interface(
    fn=process_text,                # Function to process input
    inputs=gr.Textbox(label="Enter text"),  # Input component
    outputs=gr.Textbox(label="Output")     # Output component
)

# Launch the Gradio app
interface.launch()