dingckc commited on
Commit
219e0b7
·
verified ·
1 Parent(s): c46b079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
3
 
4
  # 初始化 Inference API 客戶端
5
  model_id = "dingckc/FineLlama-3.1-8B"
6
- api_token = ACCESS_KEY
7
  inference = InferenceClient(model=model_id, token=api_token)
8
 
9
  # 定義推理函數
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ import os
4
 
5
  # 初始化 Inference API 客戶端
6
  model_id = "dingckc/FineLlama-3.1-8B"
7
+ api_token = os.getenv('ACCESS_KEY')
8
  inference = InferenceClient(model=model_id, token=api_token)
9
 
10
  # 定義推理函數