Disable gradio analytics
This commit is contained in:
parent
493051d5d5
commit
730c5562cc
1 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ else:
|
||||||
default_text = "Common sense questions and answers\n\nQuestion: \nFactual answer:"
|
default_text = "Common sense questions and answers\n\nQuestion: \nFactual answer:"
|
||||||
|
|
||||||
if args.notebook:
|
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(
|
gr.Markdown(
|
||||||
f"""
|
f"""
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ elif args.chat:
|
||||||
global history
|
global history
|
||||||
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(
|
gr.Markdown(
|
||||||
f"""
|
f"""
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ elif args.chat:
|
||||||
textbox.submit(lambda x: "", textbox, textbox, show_progress=False)
|
textbox.submit(lambda x: "", textbox, textbox, show_progress=False)
|
||||||
btn2.click(lambda x: "", display1, display1)
|
btn2.click(lambda x: "", display1, display1)
|
||||||
else:
|
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(
|
gr.Markdown(
|
||||||
f"""
|
f"""
|
||||||
# Text generation lab
|
# Text generation lab
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue