Prevent Gradio from saying 'Thank you for being a Gradio user!'

This commit is contained in:
oobabooga 2025-04-26 18:14:57 -07:00
parent 4a32e1f80c
commit 8b83e6f843

View file

@ -9,6 +9,7 @@ from functools import wraps
import gradio as gr
import gradio.routes
import gradio.utils
from starlette.middleware.trustedhost import TrustedHostMiddleware
from modules import shared
@ -30,6 +31,7 @@ def create_app_with_trustedhost(*args, **kwargs):
gradio.routes.App.create_app = create_app_with_trustedhost
gradio.utils.launch_counter = lambda: None
class GradioDeprecationWarning(DeprecationWarning):