Spaces:
Sleeping
Sleeping
Add main
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def capitalize_text(input_text):
|
| 4 |
+
return input_text.upper()
|
| 5 |
+
|
| 6 |
+
iface = gr.Interface(
|
| 7 |
+
fn=capitalize_text,
|
| 8 |
+
inputs=gr.Textbox(label="Enter text"),
|
| 9 |
+
outputs=gr.Textbox(label="Capitalized text"),
|
| 10 |
+
title="Text Capitalizer",
|
| 11 |
+
description="Enter some text and click submit to capitalize it."
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
iface.launch()
|