add token
Browse files
app.py
CHANGED
|
@@ -11,6 +11,8 @@ import gradio as gr
|
|
| 11 |
from huggingface_hub import hf_hub_download
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
| 14 |
hf_hub_download(
|
| 15 |
repo_id="bartowski/gemma-2-9b-it-GGUF",
|
| 16 |
filename="gemma-2-9b-it-Q5_K_M.gguf",
|
|
@@ -26,7 +28,8 @@ hf_hub_download(
|
|
| 26 |
hf_hub_download(
|
| 27 |
repo_id="google/gemma-2-2b-it-GGUF",
|
| 28 |
filename="2b_it_v2.gguf",
|
| 29 |
-
local_dir="./models"
|
|
|
|
| 30 |
)
|
| 31 |
|
| 32 |
|
|
|
|
| 11 |
from huggingface_hub import hf_hub_download
|
| 12 |
|
| 13 |
|
| 14 |
+
huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
|
| 15 |
+
|
| 16 |
hf_hub_download(
|
| 17 |
repo_id="bartowski/gemma-2-9b-it-GGUF",
|
| 18 |
filename="gemma-2-9b-it-Q5_K_M.gguf",
|
|
|
|
| 28 |
hf_hub_download(
|
| 29 |
repo_id="google/gemma-2-2b-it-GGUF",
|
| 30 |
filename="2b_it_v2.gguf",
|
| 31 |
+
local_dir="./models",
|
| 32 |
+
token=huggingface_token
|
| 33 |
)
|
| 34 |
|
| 35 |
|