aiqtech commited on
Commit
8434b8f
ยท
verified ยท
1 Parent(s): e6e989e

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +2 -2
demo.py CHANGED
@@ -27,8 +27,8 @@ import requests
27
  from datetime import datetime
28
  import random
29
 
30
- # ๋ฒˆ์—ญ ํŒŒ์ดํ”„๋ผ์ธ ์ƒ์„ฑ
31
- translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en")
32
 
33
  # ๋ฒˆ์—ญ ํ•จ์ˆ˜
34
  def translate_prompt(korean_prompt):
 
27
  from datetime import datetime
28
  import random
29
 
30
+ # ํŒŒ์ดํ”„๋ผ์ธ์— device ์ธ์ž ์ถ”๊ฐ€ํ•˜์—ฌ GPU ์„ค์ •
31
+ translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en", device="cuda")
32
 
33
  # ๋ฒˆ์—ญ ํ•จ์ˆ˜
34
  def translate_prompt(korean_prompt):