Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import pytesseract
|
3 |
import os
|
4 |
|
5 |
-
def process(image, lang):
|
6 |
try:
|
7 |
result = pytesseract.image_to_string(image, lang=lang)
|
8 |
os.remove(image)
|
|
|
2 |
import pytesseract
|
3 |
import os
|
4 |
|
5 |
+
def process(image: str, lang: str = 'eng') -> str:
|
6 |
try:
|
7 |
result = pytesseract.image_to_string(image, lang=lang)
|
8 |
os.remove(image)
|