Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
FinancialSupport
commited on
Commit
•
afb65a2
1
Parent(s):
c363d02
Update src/submission/check_validity.py
Browse files
src/submission/check_validity.py
CHANGED
@@ -56,7 +56,10 @@ def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_rem
|
|
56 |
)
|
57 |
|
58 |
except Exception as e:
|
59 |
-
|
|
|
|
|
|
|
60 |
|
61 |
|
62 |
def get_model_size(model_info: ModelInfo, precision: str):
|
|
|
56 |
)
|
57 |
|
58 |
except Exception as e:
|
59 |
+
traceback.print_exc()
|
60 |
+
if "You are trying to access a gated repo." in str(e):
|
61 |
+
return True, "uses a gated model.", None
|
62 |
+
return False, "was not found on hub!", None
|
63 |
|
64 |
|
65 |
def get_model_size(model_info: ModelInfo, precision: str):
|