Anasuya Basu commited on
Commit
c97a8a3
·
1 Parent(s): fdf26d3

Adding auth token

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,9 +1,12 @@
1
  import gradio as gr
 
2
  from huggingface_hub import InferenceClient
 
3
 
4
  """
5
  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
6
  """
 
7
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
 
9
 
 
1
  import gradio as gr
2
+ import os
3
  from huggingface_hub import InferenceClient
4
+ from huggingface_hub import login
5
 
6
  """
7
  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
8
  """
9
+ login(token=os.getenv("HF_TOKEN"))
10
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
11
 
12