removing loginbutton logic
Browse files
submit.py
CHANGED
|
@@ -66,12 +66,12 @@ def make_submission(
|
|
| 66 |
model_description: str = "",
|
| 67 |
anonymous: bool = False,
|
| 68 |
registration_code: str = "",
|
| 69 |
-
profile: gr.OAuthProfile | None = None,
|
| 70 |
):
|
| 71 |
|
| 72 |
-
if profile:
|
| 73 |
-
|
| 74 |
-
user_state = user_state
|
| 75 |
validate_username(user_state)
|
| 76 |
|
| 77 |
model_name = model_name.strip()
|
|
|
|
| 66 |
model_description: str = "",
|
| 67 |
anonymous: bool = False,
|
| 68 |
registration_code: str = "",
|
| 69 |
+
# profile: gr.OAuthProfile | None = None,
|
| 70 |
):
|
| 71 |
|
| 72 |
+
# if profile:
|
| 73 |
+
# user_state = profile.name
|
| 74 |
+
# user_state = user_state
|
| 75 |
validate_username(user_state)
|
| 76 |
|
| 77 |
model_name = model_name.strip()
|