warhawkmonk commited on
Commit
a476eb9
·
verified ·
1 Parent(s): c6066d0

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def process_text(input_text):
4
+ return input_text.upper()
5
+
6
+ # Define the Gradio interface
7
+ interface = gr.Interface(
8
+ fn=process_text, # Function to process input
9
+ inputs=gr.Textbox(label="Enter text"), # Input component
10
+ outputs=gr.Textbox(label="Output") # Output component
11
+ )
12
+
13
+ # Launch the Gradio app
14
+ interface.launch()