marksml commited on
Commit
e513bd4
·
1 Parent(s): a1924f9

enable HF_TOKEN

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,7 +3,7 @@ from huggingface_hub import InferenceClient
3
  import os
4
 
5
  # Setze deinen Hugging Face API-Token hier
6
- #HF_TOKEN = os.getenv("HF_TOKEN")
7
 
8
  #print("HF_TOKEN:", HF_TOKEN)
9
 
@@ -13,8 +13,7 @@ For more information on `huggingface_hub` Inference API support, please check th
13
  client = InferenceClient(
14
  #"Qwen/Qwen2.5-72B-Instruct",
15
  "XiaomiMiMo/MiMo-V2-Flash",
16
- #"deepseek-ai/DeepSeek-R1",
17
- #token=HF_TOKEN # Token from Environment Variable or passed directly
18
  )
19
 
20
 
 
3
  import os
4
 
5
  # Setze deinen Hugging Face API-Token hier
6
+ HF_TOKEN = os.getenv("HF_TOKEN")
7
 
8
  #print("HF_TOKEN:", HF_TOKEN)
9
 
 
13
  client = InferenceClient(
14
  #"Qwen/Qwen2.5-72B-Instruct",
15
  "XiaomiMiMo/MiMo-V2-Flash",
16
+ token=HF_TOKEN # Token from Environment Variable or passed directly
 
17
  )
18
 
19