pragnakalp
commited on
Commit
•
6c40d37
1
Parent(s):
28e8ba5
Update app.py
Browse files
app.py
CHANGED
@@ -120,11 +120,8 @@ def generate_ocr(Method,img):
|
|
120 |
s = smtplib('smtp.gmail.com', 587)
|
121 |
s.starttls()
|
122 |
s.ehlo()
|
123 |
-
# Pretend the SMTP server supports some forms of authentication.
|
124 |
-
s.esmtp_features['auth'] = 'LOGIN DIGEST-MD5 PLAIN'
|
125 |
s.login(sender,password)
|
126 |
|
127 |
-
|
128 |
message = """Subject : Appointment Booking\n\n
|
129 |
Hello,
|
130 |
Your OCR generated successfully"""
|
@@ -133,10 +130,7 @@ def generate_ocr(Method,img):
|
|
133 |
mailsend=1
|
134 |
print("Send mail successfully")
|
135 |
return text_output
|
136 |
-
|
137 |
-
# IPAddr = socket.gethostbyname(hostname)
|
138 |
-
# print(hostname)
|
139 |
-
# print("\nHost-IP-Address:" + IPAddr)
|
140 |
except Exception as e:
|
141 |
print("Error in ocr generation ==>",e)
|
142 |
text_output = "Something went wrong"
|
|
|
120 |
s = smtplib('smtp.gmail.com', 587)
|
121 |
s.starttls()
|
122 |
s.ehlo()
|
|
|
|
|
123 |
s.login(sender,password)
|
124 |
|
|
|
125 |
message = """Subject : Appointment Booking\n\n
|
126 |
Hello,
|
127 |
Your OCR generated successfully"""
|
|
|
130 |
mailsend=1
|
131 |
print("Send mail successfully")
|
132 |
return text_output
|
133 |
+
|
|
|
|
|
|
|
134 |
except Exception as e:
|
135 |
print("Error in ocr generation ==>",e)
|
136 |
text_output = "Something went wrong"
|