SuryaT1 commited on
Commit
d83d4f9
·
verified ·
1 Parent(s): 2e512a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import re
3
  import cv2
@@ -6,6 +7,12 @@ import numpy as np
6
  from pytesseract import Output
7
  from PIL import Image
8
 
 
 
 
 
 
 
9
  # Define keywords for highlighting
10
  KEYWORDS = ["fatal", "unreachable", "ssh", "publickey", "psrp", "5985", "python", "sudo", "8081",
11
  "umask", "storage", "ssl/tls", "powershell", "authenticate"]
 
1
+ import os
2
  import gradio as gr
3
  import re
4
  import cv2
 
7
  from pytesseract import Output
8
  from PIL import Image
9
 
10
+
11
+ # Ensure tesseract is installed in the space
12
+ os.system('apt-get install -y tesseract-ocr')
13
+
14
+
15
+
16
  # Define keywords for highlighting
17
  KEYWORDS = ["fatal", "unreachable", "ssh", "publickey", "psrp", "5985", "python", "sudo", "8081",
18
  "umask", "storage", "ssl/tls", "powershell", "authenticate"]