tkdehf2 commited on
Commit
8ebe7c1
ยท
verified ยท
1 Parent(s): 2ae6f39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,8 +1,11 @@
 
1
  import gradio as gr
2
  import pytesseract
3
  from PIL import Image
4
 
5
- # Tesseract ๊ฒฝ๋กœ ์„ค์ • (Hugging Face Spaces์—์„œ๋Š” ๊ธฐ๋ณธ ์„ค์น˜๋œ Tesseract ์‚ฌ์šฉ)
 
 
6
  pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
7
 
8
  # ํ‰๊ฐ€ ํ•จ์ˆ˜ ์ •์˜
 
1
+ sudo apt update && sudo apt install tesseract-ocr -y
2
  import gradio as gr
3
  import pytesseract
4
  from PIL import Image
5
 
6
+ # Tesseract ๊ฒฝ๋กœ ์„ค์ •
7
+ # Hugging Face Spaces์—์„œ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ "/usr/bin/tesseract" ๊ฒฝ๋กœ์— ์„ค์น˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
8
+ # ๋กœ์ปฌ ํ™˜๊ฒฝ์—์„œ ์‹คํ–‰ ์‹œ, ์•„๋ž˜ ๊ฒฝ๋กœ๋ฅผ ์ž์‹ ์˜ Tesseract ์„ค์น˜ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•˜์„ธ์š”.
9
  pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
10
 
11
  # ํ‰๊ฐ€ ํ•จ์ˆ˜ ์ •์˜