Spaces:
Sleeping
Sleeping
Update dashboard.py
Browse files- dashboard.py +6 -6
dashboard.py
CHANGED
@@ -203,12 +203,12 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Deepfake Detector") as demo:
|
|
203 |
"", "", "", "", # clear signup fields
|
204 |
gr.update(open=False) # close accordion
|
205 |
)
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
|
213 |
def handle_logout():
|
214 |
return (
|
|
|
203 |
"", "", "", "", # clear signup fields
|
204 |
gr.update(open=False) # close accordion
|
205 |
)
|
206 |
+
else:
|
207 |
+
return (
|
208 |
+
gr.update(value=msg, visible=True),
|
209 |
+
name, phone, email, password, # keep values if error
|
210 |
+
gr.update(open=True) # keep accordion open
|
211 |
+
)
|
212 |
|
213 |
def handle_logout():
|
214 |
return (
|