Spaces:
Sleeping
Sleeping
Create main.py
Browse files
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()
|