From 730c5562cc8bf8cb6a29d2348adc5456e0cde1bc Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 8 Jan 2023 01:42:38 -0300 Subject: [PATCH] Disable gradio analytics --- server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index fe5c9cf..0d5dcab 100644 --- a/server.py +++ b/server.py @@ -123,7 +123,7 @@ else: default_text = "Common sense questions and answers\n\nQuestion: \nFactual answer:" if args.notebook: - with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}") as interface: + with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}", analytics_enabled=False) as interface: gr.Markdown( f""" @@ -169,7 +169,7 @@ elif args.chat: global history history = [] - with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}") as interface: + with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}", analytics_enabled=False) as interface: gr.Markdown( f""" @@ -203,7 +203,7 @@ elif args.chat: textbox.submit(lambda x: "", textbox, textbox, show_progress=False) btn2.click(lambda x: "", display1, display1) else: - with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}") as interface: + with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}", analytics_enabled=False) as interface: gr.Markdown( f""" # Text generation lab