pragnakalp
commited on
Commit
•
0060931
1
Parent(s):
24abe0b
Update app.py
Browse files
app.py
CHANGED
@@ -23,10 +23,7 @@ from huggingface_hub import HfApi
|
|
23 |
# repo_type="dataset",
|
24 |
# ignore_patterns="**/logs/*.txt",
|
25 |
# )
|
26 |
-
url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_image_to_text'
|
27 |
-
myobj = {'Deep': 'Mistry'}
|
28 |
|
29 |
-
x = requests.post(url, json = myobj)
|
30 |
# if not os.path.isdir('images'):
|
31 |
# os.mkdir('images')
|
32 |
# print("create folder--->")
|
@@ -106,7 +103,10 @@ Generate OCR
|
|
106 |
def generate_ocr(Method,img):
|
107 |
try:
|
108 |
text_output = ''
|
109 |
-
|
|
|
|
|
|
|
110 |
print("Method___________________",Method)
|
111 |
if Method == 'EasyOCR':
|
112 |
text_output = ocr_withreadme.txt_easy(img)
|
|
|
23 |
# repo_type="dataset",
|
24 |
# ignore_patterns="**/logs/*.txt",
|
25 |
# )
|
|
|
|
|
26 |
|
|
|
27 |
# if not os.path.isdir('images'):
|
28 |
# os.mkdir('images')
|
29 |
# print("create folder--->")
|
|
|
103 |
def generate_ocr(Method,img):
|
104 |
try:
|
105 |
text_output = ''
|
106 |
+
url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_image_to_text'
|
107 |
+
myobj = {'Deep': 'Mistry'}
|
108 |
+
|
109 |
+
x = requests.post(url, json = myobj)
|
110 |
print("Method___________________",Method)
|
111 |
if Method == 'EasyOCR':
|
112 |
text_output = ocr_withreadme.txt_easy(img)
|