Fixing return in delete_data function.
Browse files
app.py
CHANGED
@@ -41,9 +41,9 @@ def delete_data(secret):
|
|
41 |
return
|
42 |
if os.path.exists(local_storage_file):
|
43 |
os.remove(local_storage_file)
|
44 |
-
|
45 |
else:
|
46 |
-
|
47 |
|
48 |
|
49 |
# Create Gradio interface
|
|
|
41 |
return
|
42 |
if os.path.exists(local_storage_file):
|
43 |
os.remove(local_storage_file)
|
44 |
+
return "Data deleted successfully"
|
45 |
else:
|
46 |
+
return "No data found"
|
47 |
|
48 |
|
49 |
# Create Gradio interface
|