sqfoo commited on
Commit
ccef4f7
·
verified ·
1 Parent(s): ea4c290

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -124,8 +124,7 @@ def play_turn(human_response, loc, player, cur, custom_token, request: gr.Reques
124
  ]
125
 
126
  try:
127
- os.environ['HUGGINGFACEHUB_API_TOKEN'] = chosen_token
128
- model = setup_model(MODEL_CONFIG)
129
  response = model.invoke(full_msg)
130
  # client = InferenceClient(
131
  # api_key=chosen_token
 
124
  ]
125
 
126
  try:
127
+ model = setup_model(MODEL_CONFIG, chosen_token)
 
128
  response = model.invoke(full_msg)
129
  # client = InferenceClient(
130
  # api_key=chosen_token