songs1 commited on
Commit
8369f5c
·
1 Parent(s): 49d41a8

hide api fix

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -767,7 +767,8 @@ with gr.Blocks(css_paths="style.css") as demo:
767
  fn=update_json_from_active,
768
  inputs=[active_selections, json_output],
769
  outputs=json_output,
770
- api_name=False,
 
771
  )
772
 
773
  # Execute API call with filter
@@ -776,8 +777,8 @@ with gr.Blocks(css_paths="style.css") as demo:
776
  inputs=json_output,
777
  # outputs=[case_counter, active_selections] + filter_cards,
778
  outputs=[case_counter, active_selections],
779
- # api_name=False, # this breaks the API functionality, not sure why
780
- show_api=False,
781
  )
782
 
783
  # Trigger updates
@@ -785,8 +786,8 @@ with gr.Blocks(css_paths="style.css") as demo:
785
  fn=get_default_filter,
786
  inputs=None,
787
  outputs=json_output,
788
- # api_name=False, # this breaks the API functionality, not sure why
789
- show_api=False,
790
  )
791
 
792
  if __name__ == "__main__":
 
767
  fn=update_json_from_active,
768
  inputs=[active_selections, json_output],
769
  outputs=json_output,
770
+ # api_name=False, # this breaks the API functionality, not sure why
771
+ show_api=False, # so just hide the API endpoints instead, not ideal
772
  )
773
 
774
  # Execute API call with filter
 
777
  inputs=json_output,
778
  # outputs=[case_counter, active_selections] + filter_cards,
779
  outputs=[case_counter, active_selections],
780
+ # api_name=False, # this breaks the API functionality, not sure why
781
+ show_api=False, # so just hide the API endpoints instead, not ideal
782
  )
783
 
784
  # Trigger updates
 
786
  fn=get_default_filter,
787
  inputs=None,
788
  outputs=json_output,
789
+ # api_name=False, # this breaks the API functionality, not sure why
790
+ show_api=False, # so just hide the API endpoints instead, not ideal
791
  )
792
 
793
  if __name__ == "__main__":