Update app.py
Browse files
app.py
CHANGED
|
@@ -89,16 +89,18 @@ for img_path in img_list:
|
|
| 89 |
save_restore_path = os.path.join("_output", 'restored_imgs', f'{basename}.{extension}')
|
| 90 |
imwrite(restored_img, save_restore_path)
|
| 91 |
os.system("ls ./_output")
|
|
|
|
| 92 |
os.system("ls ./_output/cmp")
|
|
|
|
| 93 |
os.system("ls ./_output/restored_imgs")
|
| 94 |
-
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
def inference():
|
| 100 |
-
|
| 101 |
-
input_img = cv2.imread("./_output/cmp/imagem-
|
| 102 |
input_img= cv2.cvtColor(input_img,cv2.COLOR_BGR2RGB)
|
| 103 |
st.image(input_img)
|
| 104 |
|
|
|
|
| 89 |
save_restore_path = os.path.join("_output", 'restored_imgs', f'{basename}.{extension}')
|
| 90 |
imwrite(restored_img, save_restore_path)
|
| 91 |
os.system("ls ./_output")
|
| 92 |
+
os.system("echo ----")
|
| 93 |
os.system("ls ./_output/cmp")
|
| 94 |
+
os.system("echo ----")
|
| 95 |
os.system("ls ./_output/restored_imgs")
|
| 96 |
+
os.system("echo ----")
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
def inference():
|
| 102 |
+
random.randint(0, 9)
|
| 103 |
+
input_img = cv2.imread("./_output/cmp/imagem-000"+str(random.randint(1, 4))+"_0000.png" , cv2.IMREAD_COLOR)
|
| 104 |
input_img= cv2.cvtColor(input_img,cv2.COLOR_BGR2RGB)
|
| 105 |
st.image(input_img)
|
| 106 |
|