dimasdeffieux commited on
Commit
37a5fd4
Β·
verified Β·
1 Parent(s): 5d27d27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ import torch
9
  img = "input_data/ocr_input/korean1.jpg"
10
  text = "ν‘œν˜„μ΄ μ„œνˆ° 것도 잘λͺ»μΈκ°€μš”. λ‚˜ μ°¨κ°€μš΄ λ„μ‹œμ— λ”°λœ»ν•œ μ—¬μž”λ°. κ·Έλƒ₯ μ’‹μ•„ν•œλ‹¨ 말도 μ•ˆ λ˜λŠ”κ°€μš”. μ†”μ§ν•˜κ²Œ λ‚œ λ§ν•˜κ³  μ‹Άμ–΄μš”"
11
  model_id = "deepseek-ai/deepseek-llm-7b-chat"
 
12
  tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
13
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.float16, trust_remote_code=True)
14
 
 
9
  img = "input_data/ocr_input/korean1.jpg"
10
  text = "ν‘œν˜„μ΄ μ„œνˆ° 것도 잘λͺ»μΈκ°€μš”. λ‚˜ μ°¨κ°€μš΄ λ„μ‹œμ— λ”°λœ»ν•œ μ—¬μž”λ°. κ·Έλƒ₯ μ’‹μ•„ν•œλ‹¨ 말도 μ•ˆ λ˜λŠ”κ°€μš”. μ†”μ§ν•˜κ²Œ λ‚œ λ§ν•˜κ³  μ‹Άμ–΄μš”"
11
  model_id = "deepseek-ai/deepseek-llm-7b-chat"
12
+
13
  tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
14
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.float16, trust_remote_code=True)
15