Upload folder using huggingface_hub
Browse files- play_with_hf.py +1 -1
play_with_hf.py
CHANGED
@@ -74,7 +74,7 @@ with gr.Blocks(title="TextGames", css=css, delete_cache=(3600, 3600)) as demo:
|
|
74 |
|
75 |
def _resetting(confirmed, user):
|
76 |
uid = user.get('email', None) if isinstance(user, dict) else None
|
77 |
-
if uid
|
78 |
gr.Warning("You need to log in first!")
|
79 |
elif confirmed:
|
80 |
user['sid'] = get_sid(uid, force_generate_sid=True)
|
|
|
74 |
|
75 |
def _resetting(confirmed, user):
|
76 |
uid = user.get('email', None) if isinstance(user, dict) else None
|
77 |
+
if not uid:
|
78 |
gr.Warning("You need to log in first!")
|
79 |
elif confirmed:
|
80 |
user['sid'] = get_sid(uid, force_generate_sid=True)
|