JosephH commited on
Commit
ce77544
·
verified ·
1 Parent(s): 152e2c8

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +15 -0
main.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def process_text(text):
4
+ # Here you can process the text in any way you like
5
+ return f"You entered: {text}"
6
+
7
+ # Create the Gradio interface
8
+ iface = gr.Interface(
9
+ fn=process_text, # Function to process input
10
+ inputs="text", # Type of input widget
11
+ outputs="text" # Type of output widget
12
+ )
13
+
14
+ # Launch the app
15
+ iface.launch()