Update app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,14 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from llama_cpp import Llama
|
4 |
from huggingface_hub import hf_hub_download, login
|
5 |
-
import os
|
6 |
|
7 |
-
login(os.getenv("HF_TOKEN"))
|
8 |
|
9 |
model = Llama(
|
10 |
model_path=hf_hub_download(
|
11 |
-
repo_id=os.environ.get("REPO_ID", "
|
12 |
-
filename=os.environ.get("MODEL_FILE", "
|
13 |
)
|
14 |
)
|
15 |
|
|
|
2 |
import gradio as gr
|
3 |
from llama_cpp import Llama
|
4 |
from huggingface_hub import hf_hub_download, login
|
5 |
+
#import os
|
6 |
|
7 |
+
#login(os.getenv("HF_TOKEN")) my bad now its public
|
8 |
|
9 |
model = Llama(
|
10 |
model_path=hf_hub_download(
|
11 |
+
repo_id=os.environ.get("REPO_ID", "mradermacher/HuatuoGPT-o1-7B-GGUF"),
|
12 |
+
filename=os.environ.get("MODEL_FILE", "HuatuoGPT-o1-7B.Q4_K_M.gguf"),
|
13 |
)
|
14 |
)
|
15 |
|