carbonx commited on
Commit
6ca820a
·
verified ·
1 Parent(s): f5f1d90

Fix HF_TOKEN auth for InferenceClient

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ from huggingface_hub import InferenceClient
12
 
13
 
14
  def create_app():
15
- client = InferenceClient()
 
16
 
17
  def process_turn(audio, screenshot):
18
  if audio is None and screenshot is None:
 
12
 
13
 
14
  def create_app():
15
+ # Bruker HF_TOKEN som settes automatisk i HF Spaces
16
+ client = InferenceClient(token=os.environ.get("HF_TOKEN"))
17
 
18
  def process_turn(audio, screenshot):
19
  if audio is None and screenshot is None: