Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ import gradio as gr
|
|
6 |
# 🔹 Get Hugging Face Token from environment variable
|
7 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
8 |
|
9 |
-
# 🔹 Correct Model URL
|
10 |
-
MODEL_URL = "https://huggingface.co/TheBloke/Mistral-7B-GGUF/resolve/main/mistral-7b.
|
11 |
-
MODEL_PATH = "./models/mistral-7b.
|
12 |
|
13 |
# 🔹 Ensure the models directory exists
|
14 |
os.makedirs("./models", exist_ok=True)
|
|
|
6 |
# 🔹 Get Hugging Face Token from environment variable
|
7 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
8 |
|
9 |
+
# 🔹 Correct Model URL & Filename
|
10 |
+
MODEL_URL = "https://huggingface.co/TheBloke/Mistral-7B-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q4_K_M.gguf"
|
11 |
+
MODEL_PATH = "./models/mistral-7b-instruct-v0.1.Q4_K_M.gguf"
|
12 |
|
13 |
# 🔹 Ensure the models directory exists
|
14 |
os.makedirs("./models", exist_ok=True)
|