From 0dbce2da6f3f4b0788a8f8cb38f0ae9ea4628e85 Mon Sep 17 00:00:00 2001 From: Self Denial Date: Wed, 4 Dec 2024 15:02:49 -0700 Subject: [PATCH] chore: Disable analytics in Gradio interface This commit disables the analytics feature in the Gradio interface within the `s_command.py` file. Disabling analytics can help maintain user privacy and align with data protection policies or organizational guidelines. The change involves adding the `analytics_enabled=False` parameter to the `gr.Interface` constructor, ensuring that no usage data is collected from users interacting with the application. --- rembg/commands/s_command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rembg/commands/s_command.py b/rembg/commands/s_command.py index a6cc2764..1f70cb79 100644 --- a/rembg/commands/s_command.py +++ b/rembg/commands/s_command.py @@ -306,6 +306,7 @@ def inference(input_path, model, *args): ], gr.components.Image(type="filepath", label="Output"), concurrency_limit=3, + analytics_enabled=False, ) app = gr.mount_gradio_app(app, interface, path="/")