yukiapple323 commited on
Commit
78fdf5c
·
verified ·
1 Parent(s): 839b04b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -3
index.html CHANGED
@@ -25,11 +25,11 @@ from transformers_js_py import pipeline
25
  from filters import convert
26
 
27
  # 모델과 tokenizer 파일 경로
28
- model_name = 'monologg/koelectra-base-v3-discriminator'
29
  tokenizer_path = 'tokenizer.json'
30
 
31
  # 모델 및 tokenizer 로드
32
- pipe = await pipeline('sentiment-analysis', model_name, tokenizer=tokenizer_path)
33
 
34
  async def predict(text):
35
  result = await pipe(text)
@@ -79,4 +79,3 @@ transformers-js-py
79
  </gradio-lite>
80
  </body>
81
  </html>
82
-
 
25
  from filters import convert
26
 
27
  # 모델과 tokenizer 파일 경로
28
+ model_path = 'model/'
29
  tokenizer_path = 'tokenizer.json'
30
 
31
  # 모델 및 tokenizer 로드
32
+ pipe = await pipeline('sentiment-analysis', model_path, tokenizer=tokenizer_path)
33
 
34
  async def predict(text):
35
  result = await pipe(text)
 
79
  </gradio-lite>
80
  </body>
81
  </html>