parass13 commited on
Commit
26455d3
·
verified ·
1 Parent(s): 07dfae6

Update dashboard.py

Browse files
Files changed (1) hide show
  1. dashboard.py +6 -1
dashboard.py CHANGED
@@ -178,7 +178,12 @@ with gr.Blocks(theme=gr.themes.Soft(), title="VerifiAI - Deepfake Detector") as
178
  )
179
  predict_btn.click(fn=predict_image, inputs=image_input, outputs=result)
180
 
181
- demo.load(fn=lambda: False, outputs=is_logged_in)
 
 
 
 
 
182
 
183
 
184
  if __name__ == "__main__":
 
178
  )
179
  predict_btn.click(fn=predict_image, inputs=image_input, outputs=result)
180
 
181
+ def force_ui_update():
182
+ return gr.update(visible=True), gr.update(visible=False), gr.update(selected=LOGIN_TAB_NAME), gr.update(visible=False)
183
+
184
+ # Force login screen on initial load
185
+ demo.load(fn=force_ui_update, outputs=[login_tab, detect_tab, tabs, message_output])
186
+
187
 
188
 
189
  if __name__ == "__main__":