Spaces:
Runtime error
Runtime error
added sample secret to UI
Browse files
app.py
CHANGED
@@ -1,7 +1,19 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def process_text(input_text):
|
4 |
+
# Your processing logic here
|
5 |
+
return input_text.upper()
|
6 |
|
7 |
+
textbox = gr.Textbox(
|
8 |
+
lines=5,
|
9 |
+
placeholder="Type your text here...",
|
10 |
+
interactive=False # Set this to False to hide the input
|
11 |
+
)
|
12 |
+
|
13 |
+
interface = gr.Interface(
|
14 |
+
fn=process_text,
|
15 |
+
inputs=textbox,
|
16 |
+
outputs="text"
|
17 |
+
)
|
18 |
+
|
19 |
+
interface.launch()
|