Adding password type input for save_data function.
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def delete_data(secret):
|
|
| 44 |
# Create Gradio interface
|
| 45 |
iface1 = gr.Interface(
|
| 46 |
fn=save_data,
|
| 47 |
-
inputs=["
|
| 48 |
outputs="text",
|
| 49 |
title="Save Data"
|
| 50 |
)
|
|
|
|
| 44 |
# Create Gradio interface
|
| 45 |
iface1 = gr.Interface(
|
| 46 |
fn=save_data,
|
| 47 |
+
inputs=[gr.Textbox(label="Secret", type="password", render=False), "text", "text"],
|
| 48 |
outputs="text",
|
| 49 |
title="Save Data"
|
| 50 |
)
|