Update app.py
Browse files
app.py
CHANGED
|
@@ -755,11 +755,11 @@ def login(email, password):
|
|
| 755 |
)
|
| 756 |
|
| 757 |
def signup(email, password, username):
|
| 758 |
-
|
| 759 |
return (
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
)
|
| 764 |
if not email or not password or not username:
|
| 765 |
return (
|
|
|
|
| 755 |
)
|
| 756 |
|
| 757 |
def signup(email, password, username):
|
| 758 |
+
if not FIREBASE_AVAILABLE:
|
| 759 |
return (
|
| 760 |
+
"Firebase not initialized. Signup unavailable.",
|
| 761 |
+
gr.update(visible=True), gr.update(visible=False), gr.update(visible=False),
|
| 762 |
+
gr.update(visible=False), "", "", "", "", ""
|
| 763 |
)
|
| 764 |
if not email or not password or not username:
|
| 765 |
return (
|