Dave67350 commited on
Commit
8f68190
·
verified ·
1 Parent(s): 81a6310

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +9 -6
Gradio_UI.py CHANGED
@@ -95,14 +95,17 @@ with gr.Blocks(
95
  css="""
96
  footer,
97
  a[href*="gradio.app"],
98
- a[href*="huggingface.co"],
 
 
 
 
99
  button[aria-label="Share"],
100
  button[title="Share"],
101
- button[data-testid="share-button"],
102
- .svelte-drgfjz[data-testid="share-button"],
103
- .svelte-drgfjz svg path[d^="M15 8a3"],
104
- .chatbot button[data-testid="share-button"] {
105
- display: none !important;
106
  }
107
  """
108
  ) as demo:
 
95
  css="""
96
  footer,
97
  a[href*="gradio.app"],
98
+ a[href*="huggingface.co"] {
99
+ display: none !important;
100
+ }
101
+
102
+ /* Disable share button click */
103
  button[aria-label="Share"],
104
  button[title="Share"],
105
+ button[data-testid="share-button"] {
106
+ pointer-events: none !important;
107
+ opacity: 0.4 !important;
108
+ cursor: default !important;
 
109
  }
110
  """
111
  ) as demo: