Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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`.
|