Spaces:
Sleeping
Sleeping
pragnakalp
commited on
Commit
•
061dadf
1
Parent(s):
6232889
Update app.py
Browse files
app.py
CHANGED
@@ -128,8 +128,10 @@ def save_details(Method,text_output,img):
|
|
128 |
splitted_path = os.path.splitext(picture_path)
|
129 |
modified_picture_path = splitted_path[0] + curr_datetime + splitted_path[1]
|
130 |
# cv2.imwrite("/home/user/app/",modified_picture_path, img)
|
131 |
-
|
132 |
-
|
|
|
|
|
133 |
input_img = modified_picture_path
|
134 |
try:
|
135 |
df = pd.read_csv("AllDetails.csv")
|
|
|
128 |
splitted_path = os.path.splitext(picture_path)
|
129 |
modified_picture_path = splitted_path[0] + curr_datetime + splitted_path[1]
|
130 |
# cv2.imwrite("/home/user/app/",modified_picture_path, img)
|
131 |
+
with open('/home/user/app/readme.txt', 'a') as f:
|
132 |
+
f.write(picture_path)
|
133 |
+
img = Image.open(r"/home/user/app/")
|
134 |
+
img.save(modified_picture_path)
|
135 |
input_img = modified_picture_path
|
136 |
try:
|
137 |
df = pd.read_csv("AllDetails.csv")
|