Update README.md
Browse files
README.md
CHANGED
@@ -9,11 +9,12 @@ tags:
|
|
9 |
---
|
10 |
## Load Model For Inference
|
11 |
|
12 |
-
|
|
|
13 |
MODEL_PATH="silver_assistant_transformer.keras"
|
14 |
model_path = hf_hub_download(repo_id="SilverAvocado/silverAssistant", filename=MODEL_PATH)
|
15 |
|
16 |
-
|
17 |
model = load_model(
|
18 |
model_path,
|
19 |
custom_objects={
|
@@ -22,7 +23,6 @@ model = load_model(
|
|
22 |
}
|
23 |
)
|
24 |
|
25 |
-
|
26 |
y_pred = np.argmax(model.predict([X_test1, X_test2, X_test3, X_test4]), axis=1)
|
27 |
accuracy = accuracy_score(y_test, y_pred)
|
28 |
print(f"Test Accuracy: {accuracy:.4f}")
|
|
|
9 |
---
|
10 |
## Load Model For Inference
|
11 |
|
12 |
+
```python
|
13 |
+
# Hugging Face Hub์์ ๋ชจ๋ธ ๋ค์ด๋ก๋
|
14 |
MODEL_PATH="silver_assistant_transformer.keras"
|
15 |
model_path = hf_hub_download(repo_id="SilverAvocado/silverAssistant", filename=MODEL_PATH)
|
16 |
|
17 |
+
# ์ฌ์ฉ์ ์ ์ ํด๋์ค ๋ก๋
|
18 |
model = load_model(
|
19 |
model_path,
|
20 |
custom_objects={
|
|
|
23 |
}
|
24 |
)
|
25 |
|
|
|
26 |
y_pred = np.argmax(model.predict([X_test1, X_test2, X_test3, X_test4]), axis=1)
|
27 |
accuracy = accuracy_score(y_test, y_pred)
|
28 |
print(f"Test Accuracy: {accuracy:.4f}")
|