Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ def demo_page():
|
|
| 135 |
</head>
|
| 136 |
<body>
|
| 137 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 138 |
-
<h2>
|
| 139 |
<p>Image will be rectangled with color filler where applicable.</p>
|
| 140 |
<h3>Result 1:</h3>
|
| 141 |
<img src="data:image/jpeg;base64,{encoded_img1}" />
|
|
@@ -160,8 +160,8 @@ def application_page():
|
|
| 160 |
</head>
|
| 161 |
<body>
|
| 162 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 163 |
-
<h2>
|
| 164 |
-
<p>Upload a JPG image and choose your target dimensions.
|
| 165 |
<form action="/upload/" enctype="multipart/form-data" method="post">
|
| 166 |
<label for="file">Upload your image:</label>
|
| 167 |
<input name="file" type="file" required><br><br>
|
|
|
|
| 135 |
</head>
|
| 136 |
<body>
|
| 137 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 138 |
+
<h2>Recsize Image Demo (CPU Optimized)</h2>
|
| 139 |
<p>Image will be rectangled with color filler where applicable.</p>
|
| 140 |
<h3>Result 1:</h3>
|
| 141 |
<img src="data:image/jpeg;base64,{encoded_img1}" />
|
|
|
|
| 160 |
</head>
|
| 161 |
<body>
|
| 162 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 163 |
+
<h2>Resize Image Application (CPU Optimized)</h2>
|
| 164 |
+
<p>Upload a JPG image and choose your target dimensions. Max 1600px per side.</p>
|
| 165 |
<form action="/upload/" enctype="multipart/form-data" method="post">
|
| 166 |
<label for="file">Upload your image:</label>
|
| 167 |
<input name="file" type="file" required><br><br>
|