Fixing secret inputs.
Browse files
app.py
CHANGED
@@ -41,8 +41,6 @@ def delete_data(secret):
|
|
41 |
else:
|
42 |
return "No data found"
|
43 |
|
44 |
-
secret_input = gr.Textbox(label="Secret", type="password")
|
45 |
-
|
46 |
# Create Gradio interface
|
47 |
iface1 = gr.Interface(
|
48 |
fn=save_data,
|
@@ -53,14 +51,14 @@ iface1 = gr.Interface(
|
|
53 |
|
54 |
iface2 = gr.Interface(
|
55 |
fn=load_data,
|
56 |
-
inputs=
|
57 |
outputs="text",
|
58 |
title="Load Data"
|
59 |
)
|
60 |
|
61 |
iface3 = gr.Interface(
|
62 |
fn=delete_data,
|
63 |
-
inputs=
|
64 |
outputs="text",
|
65 |
title="Delete Data"
|
66 |
)
|
|
|
41 |
else:
|
42 |
return "No data found"
|
43 |
|
|
|
|
|
44 |
# Create Gradio interface
|
45 |
iface1 = gr.Interface(
|
46 |
fn=save_data,
|
|
|
51 |
|
52 |
iface2 = gr.Interface(
|
53 |
fn=load_data,
|
54 |
+
inputs=gr.Textbox(label="Secret", type="password"),
|
55 |
outputs="text",
|
56 |
title="Load Data"
|
57 |
)
|
58 |
|
59 |
iface3 = gr.Interface(
|
60 |
fn=delete_data,
|
61 |
+
inputs=gr.inputs.Textbox(label="Secret", type="password"),
|
62 |
outputs="text",
|
63 |
title="Delete Data"
|
64 |
)
|