Spaces:
Running
Running
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() | |