Selaa lähdekoodia

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.
Self Denial 9 kuukautta sitten
vanhempi
commit
0dbce2da6f
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      rembg/commands/s_command.py

+ 1 - 0
rembg/commands/s_command.py

@@ -306,6 +306,7 @@ def s_command(port: int, host: str, log_level: str, threads: int) -> None:
             ],
             gr.components.Image(type="filepath", label="Output"),
             concurrency_limit=3,
+            analytics_enabled=False,
         )
 
         app = gr.mount_gradio_app(app, interface, path="/")