caviri commited on
Commit
153b050
·
1 Parent(s): 2c468b2

Removing non functional button

Browse files
Files changed (1) hide show
  1. main.py +0 -17
main.py CHANGED
@@ -41,26 +41,9 @@ with gr.Blocks() as demo:
41
  }
42
  """
43
 
44
- # JavaScript code to hide the header
45
- js_code_hide_header = """
46
- () => {
47
- const header = document.querySelector('header');
48
- if (header) {
49
- header.style.display = 'none';
50
- console.log("Header hidden");
51
- } else {
52
- console.log("Header not found");
53
- }
54
- }
55
- """
56
-
57
  btn = gr.Button("Get Location")
58
  btn.click(None, [], [], js=js_code)
59
  hidden_input.change(display_location, inputs=hidden_input, outputs=location_data)
60
 
61
- # Add the "Hide Header" button
62
- btn_hide_header = gr.Button("Hide Header")
63
- btn_hide_header.click(fn=None, inputs=None, outputs=None, js=js_code_hide_header)
64
-
65
 
66
  demo.launch(server_name="0.0.0.0")
 
41
  }
42
  """
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  btn = gr.Button("Get Location")
45
  btn.click(None, [], [], js=js_code)
46
  hidden_input.change(display_location, inputs=hidden_input, outputs=location_data)
47
 
 
 
 
 
48
 
49
  demo.launch(server_name="0.0.0.0")