Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix access token
Browse files- src/app.py +2 -0
src/app.py
CHANGED
@@ -7,6 +7,8 @@ from model_utils import calculate_memory, get_model
|
|
7 |
|
8 |
|
9 |
def get_results(model_name: str, library: str, options: list, access_token: str):
|
|
|
|
|
10 |
model = get_model(model_name, library, access_token)
|
11 |
# try:
|
12 |
# has_discussion = check_for_discussion(model_name)
|
|
|
7 |
|
8 |
|
9 |
def get_results(model_name: str, library: str, options: list, access_token: str):
|
10 |
+
if access_token == "":
|
11 |
+
access_token = None
|
12 |
model = get_model(model_name, library, access_token)
|
13 |
# try:
|
14 |
# has_discussion = check_for_discussion(model_name)
|