Spaces:
Runtime error
Runtime error
Kaan
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,7 @@ async def generate_text():
|
|
| 16 |
os.makedirs(model_dir, exist_ok=True)
|
| 17 |
|
| 18 |
hf_hub_download(repo_id="TheBloke/Mistral-7B-v0.1-GGUF", filename="mistral-7b-v0.1.Q4_K_M.gguf", local_dir=model_dir)
|
|
|
|
| 19 |
|
| 20 |
# Check if config.json file exists in the model directory
|
| 21 |
config_file = os.path.join(model_dir, "config.json")
|
|
|
|
| 16 |
os.makedirs(model_dir, exist_ok=True)
|
| 17 |
|
| 18 |
hf_hub_download(repo_id="TheBloke/Mistral-7B-v0.1-GGUF", filename="mistral-7b-v0.1.Q4_K_M.gguf", local_dir=model_dir)
|
| 19 |
+
hf_hub_download(repo_id="TheBloke/Mistral-7B-v0.1-GGUF", filename="config.json", local_dir=model_dir)
|
| 20 |
|
| 21 |
# Check if config.json file exists in the model directory
|
| 22 |
config_file = os.path.join(model_dir, "config.json")
|