AItool commited on
Commit
c0a55f7
·
verified ·
1 Parent(s): a0795ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -88,7 +88,7 @@ def home_page():
88
  </script>
89
  </head>
90
  <body>
91
- <img src="/static/images/banner.jpg" alt="Banner" width="100%">
92
  <h2>Square and Fill Image App</h2>
93
  <p>Please select an option below:</p>
94
  <ul>
@@ -129,7 +129,7 @@ def demo_page():
129
  <link rel="stylesheet" href="/static/styles/style.css">
130
  </head>
131
  <body>
132
- <img src="/static/images/banner.jpg" alt="Banner" width="100%">
133
  <h2>Square Image Demo</h2>
134
  <p>Image will be squared with color filler where applicable.</p>
135
  <h3>Result 1:</h3>
@@ -151,7 +151,7 @@ def application_page():
151
  <link rel="stylesheet" href="/static/styles/style.css">
152
  </head>
153
  <body>
154
- <img src="/static/images/banner.jpg" alt="Banner" width="100%">
155
  <h2>Square Image Application</h2>
156
  <p>Upload a JPG image to square and fill with color filler.</p>
157
  <form action="/upload/" enctype="multipart/form-data" method="post">
@@ -198,7 +198,7 @@ async def upload_file(file: UploadFile = File(...)):
198
  <link rel="stylesheet" href="/static/styles/style.css">
199
  </head>
200
  <body>
201
- <img src="/static/images/banner.jpg" alt="Banner" width="100%">
202
  <h2>Image successfully squared!</h2>
203
  <img src='data:image/jpeg;base64,{display_encoded_img}' width="512" height="512" />
204
  <p><a href="data:image/jpeg;base64,{full_size_encoded_img}" download="squared_image.jpg">
 
88
  </script>
89
  </head>
90
  <body>
91
+ <img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
92
  <h2>Square and Fill Image App</h2>
93
  <p>Please select an option below:</p>
94
  <ul>
 
129
  <link rel="stylesheet" href="/static/styles/style.css">
130
  </head>
131
  <body>
132
+ <img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
133
  <h2>Square Image Demo</h2>
134
  <p>Image will be squared with color filler where applicable.</p>
135
  <h3>Result 1:</h3>
 
151
  <link rel="stylesheet" href="/static/styles/style.css">
152
  </head>
153
  <body>
154
+ <img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
155
  <h2>Square Image Application</h2>
156
  <p>Upload a JPG image to square and fill with color filler.</p>
157
  <form action="/upload/" enctype="multipart/form-data" method="post">
 
198
  <link rel="stylesheet" href="/static/styles/style.css">
199
  </head>
200
  <body>
201
+ <img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
202
  <h2>Image successfully squared!</h2>
203
  <img src='data:image/jpeg;base64,{display_encoded_img}' width="512" height="512" />
204
  <p><a href="data:image/jpeg;base64,{full_size_encoded_img}" download="squared_image.jpg">