Skip to content

Commit

Permalink
chore: Disable analytics in Gradio interface
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lainedfles committed Dec 4, 2024
1 parent 1101c15 commit 0dbce2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rembg/commands/s_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="/")
Expand Down

0 comments on commit 0dbce2d

Please sign in to comment.