Adding delete_data iface.
Browse files
app.py
CHANGED
@@ -63,8 +63,15 @@ iface2 = gr.Interface(
|
|
63 |
title="Load Data"
|
64 |
)
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
# Combine interfaces
|
67 |
-
demo = gr.TabbedInterface([iface1, iface2], ["Save Data", "Load Data"])
|
68 |
|
69 |
# Launch the app
|
70 |
demo.launch()
|
|
|
63 |
title="Load Data"
|
64 |
)
|
65 |
|
66 |
+
iface3 = gr.Interface(
|
67 |
+
fn=delete_data,
|
68 |
+
inputs=[],
|
69 |
+
outputs="text",
|
70 |
+
title="Delete Data"
|
71 |
+
)
|
72 |
+
|
73 |
# Combine interfaces
|
74 |
+
demo = gr.TabbedInterface([iface1, iface2, iface3], ["Save Data", "Load Data", "Delete Data"])
|
75 |
|
76 |
# Launch the app
|
77 |
demo.launch()
|