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

Update app.py

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