Spaces:
Running
Running
import gradio as gr | |
def capitalize_text(input_text): | |
return input_text.upper() | |
iface = gr.Interface( | |
fn=capitalize_text, | |
inputs=gr.Textbox(label="Enter text"), | |
outputs=gr.Textbox(label="Capitalized text"), | |
title="Text Capitalizer", | |
description="Enter some text and click submit to capitalize it." | |
) | |
iface.launch() | |