Spaces:
Sleeping
Sleeping
pragnakalp
commited on
Commit
•
ad311aa
1
Parent(s):
7daa8fa
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def save_details(Method,text_output,img):
|
|
127 |
splitted_path = os.path.splitext(picture_path)
|
128 |
modified_picture_path = splitted_path[0] + curr_datetime + splitted_path[1]
|
129 |
cv2.imwrite(modified_picture_path, img)
|
130 |
-
input_img =
|
131 |
try:
|
132 |
df = pd.read_csv("AllDetails.csv")
|
133 |
df2 = {'method': Method, 'input_img': input_img, 'generated_text': text_output}
|
|
|
127 |
splitted_path = os.path.splitext(picture_path)
|
128 |
modified_picture_path = splitted_path[0] + curr_datetime + splitted_path[1]
|
129 |
cv2.imwrite(modified_picture_path, img)
|
130 |
+
input_img = modified_picture_path
|
131 |
try:
|
132 |
df = pd.read_csv("AllDetails.csv")
|
133 |
df2 = {'method': Method, 'input_img': input_img, 'generated_text': text_output}
|