marcsun13 HF Staff commited on
Commit
407f859
·
1 Parent(s): 672cbb0

fix access token

Browse files
Files changed (1) hide show
  1. 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)