update oauth
Browse files
app.py
CHANGED
|
@@ -118,6 +118,7 @@ def predict_rocketshp(
|
|
| 118 |
structure_code: str | None,
|
| 119 |
structure_file: str | None,
|
| 120 |
chain_id: str | None,
|
|
|
|
| 121 |
):
|
| 122 |
print(f"sequence text: {sequence}")
|
| 123 |
print(f"sequence file: {sequence_file}")
|
|
@@ -125,7 +126,7 @@ def predict_rocketshp(
|
|
| 125 |
print(f"structure file: {structure_file}")
|
| 126 |
print(f"model variant: {model_variant}")
|
| 127 |
|
| 128 |
-
is_authorized, token = check_user_access()
|
| 129 |
if not is_authorized:
|
| 130 |
raise gr.Error("Failed to authorize repository access.")
|
| 131 |
|
|
|
|
| 118 |
structure_code: str | None,
|
| 119 |
structure_file: str | None,
|
| 120 |
chain_id: str | None,
|
| 121 |
+
profile: gr.OAuthProfile | None,
|
| 122 |
):
|
| 123 |
print(f"sequence text: {sequence}")
|
| 124 |
print(f"sequence file: {sequence_file}")
|
|
|
|
| 126 |
print(f"structure file: {structure_file}")
|
| 127 |
print(f"model variant: {model_variant}")
|
| 128 |
|
| 129 |
+
is_authorized, token = check_user_access(profile)
|
| 130 |
if not is_authorized:
|
| 131 |
raise gr.Error("Failed to authorize repository access.")
|
| 132 |
|