Spaces:
Running
Running
Update dashboard.py
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
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__":
|