Spaces:
Runtime error
Runtime error
added sample secret to UI
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return "
|
5 |
|
6 |
-
iface = gr.Interface(fn=
|
7 |
-
iface.launch()
|
|
|
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()
|