ingsimo commited on
Commit
7f6148a
·
verified ·
1 Parent(s): 270bd8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,8 +7,9 @@ from huggingface_hub import InferenceClient
7
  """
8
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
9
  """
10
- transformers.set_access_token("hf_your_access_token")
11
- client = InferenceClient("iGeniusAI/Italia-9B-Instruct-v0.1")
 
12
 
13
 
14
  def respond(
 
7
  """
8
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
9
  """
10
+ access_token=os.getenv('hf_your_access_token')
11
+ model = AutoModel.from_pretrained("iGeniusAI/Italia-9B-Instruct-v0.1", token=access_token)
12
+ client = InferenceClient(model)
13
 
14
 
15
  def respond(