tiny-model / app.py
warhawkmonk's picture
Create app.py
a476eb9 verified
raw
history blame
372 Bytes
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()