zamalali commited on
Commit
bc38ace
·
1 Parent(s): 6aac810

Hide footer in Gradio Blocks by updating CSS and removing show_footer parameter

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -72,6 +72,7 @@ def get_image_description(image):
72
 
73
  CSS = """
74
  #table_col {background-color: rgb(3, 100, 4);}
 
75
  """
76
 
77
 
@@ -271,7 +272,7 @@ def check_validity_and_llm(session_states):
271
 
272
 
273
 
274
- with gr.Blocks(show_api=False, show_footer=False, css=CSS, theme=gr.themes.Soft(text_size=sizes.text_md)) as demo:
275
  vectordb = gr.State()
276
  doc_collection = gr.State(value=[])
277
  session_states = gr.State(value={})
 
72
 
73
  CSS = """
74
  #table_col {background-color: rgb(3, 100, 4);}
75
+ footer {visibility: hidden;}
76
  """
77
 
78
 
 
272
 
273
 
274
 
275
+ with gr.Blocks(css=CSS, theme=gr.themes.Soft(text_size=sizes.text_md)) as demo:
276
  vectordb = gr.State()
277
  doc_collection = gr.State(value=[])
278
  session_states = gr.State(value={})