isayahc commited on
Commit
734a0bd
1 Parent(s): e184ffa

added sample secret to UI

Browse files
Files changed (1) hide show
  1. app.py +16 -4
app.py CHANGED
@@ -1,7 +1,19 @@
1
  import gradio as gr
2
 
3
- def get_secret(secret: str):
4
- return f"The secret you entered is: {secret}"
 
5
 
6
- iface = gr.Interface(fn=get_secret, inputs="text", outputs="text", title="Secret Input", description="Enter your secret:")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
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()