plaguss HF staff commited on
Commit
4f3757c
1 Parent(s): 494c927

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import torch
8
  import lancedb
9
  from lancedb.embeddings import get_registry
10
  from huggingface_hub.file_download import hf_hub_download
11
- from huggingface_hub import InferenceClient
12
  from transformers import AutoTokenizer
13
  import gradio as gr
14
 
@@ -29,6 +29,8 @@ class Settings:
29
 
30
  settings = Settings()
31
 
 
 
32
 
33
  def untar_file(source: Path) -> Path:
34
  """Untar and decompress files which have passed by `make_tarfile`.
 
8
  import lancedb
9
  from lancedb.embeddings import get_registry
10
  from huggingface_hub.file_download import hf_hub_download
11
+ from huggingface_hub import InferenceClient, login
12
  from transformers import AutoTokenizer
13
  import gradio as gr
14
 
 
29
 
30
  settings = Settings()
31
 
32
+ login(token=settings.TOKEN)
33
+
34
 
35
  def untar_file(source: Path) -> Path:
36
  """Untar and decompress files which have passed by `make_tarfile`.