yunzi7 commited on
Commit
50abe92
โ€ข
1 Parent(s): abfeaa2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -9,11 +9,12 @@ tags:
9
  ---
10
  ## Load Model For Inference
11
 
12
- ### Hugging Face Hub์—์„œ ๋ชจ๋ธ ๋‹ค์šด๋กœ๋“œ
 
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}")