Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ class DeepSeekOCRAdapter:
|
|
| 49 |
|
| 50 |
# A-1) class DeepSeekOCR μλ
|
| 51 |
try:
|
| 52 |
-
import
|
| 53 |
if hasattr(dso, "DeepSeekOCR"):
|
| 54 |
self.backend = dso.DeepSeekOCR()
|
| 55 |
def _call(image: Image.Image, lang="auto"):
|
|
@@ -69,7 +69,7 @@ class DeepSeekOCRAdapter:
|
|
| 69 |
|
| 70 |
# A-2) ν¨μν ocr_image μλ
|
| 71 |
try:
|
| 72 |
-
import
|
| 73 |
if hasattr(dso, "ocr_image"):
|
| 74 |
def _call(image: Image.Image, lang="auto"):
|
| 75 |
return dso.ocr_image(image, lang=lang) # TODO: νμ μ μΈμλͺ
λ§μΆκΈ°
|
|
|
|
| 49 |
|
| 50 |
# A-1) class DeepSeekOCR μλ
|
| 51 |
try:
|
| 52 |
+
import deepseek_ocr as dso # DeepSeek-OCR-master/deeps eek_ocr.py
|
| 53 |
if hasattr(dso, "DeepSeekOCR"):
|
| 54 |
self.backend = dso.DeepSeekOCR()
|
| 55 |
def _call(image: Image.Image, lang="auto"):
|
|
|
|
| 69 |
|
| 70 |
# A-2) ν¨μν ocr_image μλ
|
| 71 |
try:
|
| 72 |
+
import deepseek_ocr as dso
|
| 73 |
if hasattr(dso, "ocr_image"):
|
| 74 |
def _call(image: Image.Image, lang="auto"):
|
| 75 |
return dso.ocr_image(image, lang=lang) # TODO: νμ μ μΈμλͺ
λ§μΆκΈ°
|