mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-08 14:46:14 -04:00
Prevent Gradio from saying 'Thank you for being a Gradio user!'
This commit is contained in:
parent
4a32e1f80c
commit
8b83e6f843
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ from functools import wraps
|
||||||
|
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
import gradio.routes
|
import gradio.routes
|
||||||
|
import gradio.utils
|
||||||
from starlette.middleware.trustedhost import TrustedHostMiddleware
|
from starlette.middleware.trustedhost import TrustedHostMiddleware
|
||||||
|
|
||||||
from modules import shared
|
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.routes.App.create_app = create_app_with_trustedhost
|
||||||
|
gradio.utils.launch_counter = lambda: None
|
||||||
|
|
||||||
|
|
||||||
class GradioDeprecationWarning(DeprecationWarning):
|
class GradioDeprecationWarning(DeprecationWarning):
|
||||||
|
|
Loading…
Add table
Reference in a new issue