Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,14 +5,14 @@ import subprocess
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
# ---------- STEP 1: Fine-tuned 모델 Git에서 clone ----------
|
| 8 |
-
repo_url = "
|
| 9 |
local_dir = "./finetuned_model"
|
| 10 |
|
| 11 |
if not os.path.exists(local_dir):
|
| 12 |
subprocess.run(["git", "clone", repo_url, local_dir])
|
| 13 |
|
| 14 |
# ---------- STEP 2: Tokenizer와 모델 로드 ----------
|
| 15 |
-
base_model = "mistralai/Mistral-7B-Instruct-v0.
|
| 16 |
|
| 17 |
tokenizer = AutoTokenizer.from_pretrained(base_model)
|
| 18 |
|
|
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
# ---------- STEP 1: Fine-tuned 모델 Git에서 clone ----------
|
| 8 |
+
repo_url = "DMID23/MachineToolAgent"
|
| 9 |
local_dir = "./finetuned_model"
|
| 10 |
|
| 11 |
if not os.path.exists(local_dir):
|
| 12 |
subprocess.run(["git", "clone", repo_url, local_dir])
|
| 13 |
|
| 14 |
# ---------- STEP 2: Tokenizer와 모델 로드 ----------
|
| 15 |
+
base_model = "mistralai/Mistral-7B-Instruct-v0.1"
|
| 16 |
|
| 17 |
tokenizer = AutoTokenizer.from_pretrained(base_model)
|
| 18 |
|