Wajahat698 commited on
Commit
08ae84e
·
verified ·
1 Parent(s): 80dd3ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -1993,7 +1993,15 @@ css = """
1993
  padding: 10px 20px;
1994
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
1995
  }
 
 
 
 
1996
 
 
 
 
 
1997
  """
1998
  def highlight_button(button_name):
1999
  return gr.Button.update(variant="primary") # Highlight the clicked button
@@ -2007,9 +2015,10 @@ with gr.Blocks(css=css,js=js_func) as demo:
2007
  """
2008
  )
2009
  gr.Image(
2010
- value="https://huggingface.co/spaces/trustlogic/temporary-trustlogic-demo/resolve/main/screenshot.png",
2011
- label="",interactive=False
2012
- )
 
2013
 
2014
 
2015
  gr.Markdown(
 
1993
  padding: 10px 20px;
1994
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
1995
  }
1996
+ /* Hides the buttons like download/expand */
1997
+ .gr-button:has(svg) {
1998
+ display: none !important;
1999
+ }
2000
 
2001
+ /* Hides the top-left label ("Image") */
2002
+ .gr-image-label {
2003
+ display: none !important;
2004
+ }
2005
  """
2006
  def highlight_button(button_name):
2007
  return gr.Button.update(variant="primary") # Highlight the clicked button
 
2015
  """
2016
  )
2017
  gr.Image(
2018
+ value="https://huggingface.co/spaces/trustlogic/temporary-trustlogic-demo/resolve/main/screenshot.png",
2019
+ label=None, # No label displayed
2020
+ interactive=False, # Prevent interactive options
2021
+ )
2022
 
2023
 
2024
  gr.Markdown(