Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,9 +9,12 @@ import cv2
|
|
| 9 |
from skimage.filters import threshold_local
|
| 10 |
import pytesseract
|
| 11 |
import re
|
| 12 |
-
|
| 13 |
from pytesseract import Output
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
def plot_gray(image):
|
| 16 |
plt.figure(figsize=(16,10))
|
| 17 |
return plt.imshow(image, cmap='Greys_r')
|
|
|
|
| 9 |
from skimage.filters import threshold_local
|
| 10 |
import pytesseract
|
| 11 |
import re
|
| 12 |
+
import os
|
| 13 |
from pytesseract import Output
|
| 14 |
|
| 15 |
+
os.system('chmod +x setup.sh')
|
| 16 |
+
os.system('./setup.sh')
|
| 17 |
+
|
| 18 |
def plot_gray(image):
|
| 19 |
plt.figure(figsize=(16,10))
|
| 20 |
return plt.imshow(image, cmap='Greys_r')
|