Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,6 +129,11 @@ def home_page():
|
|
| 129 |
<li><a href="/demo">Demo</a></li>
|
| 130 |
<li><a href="/application">Application</a></li>
|
| 131 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
</body>
|
| 133 |
</html>
|
| 134 |
"""
|
|
@@ -171,6 +176,11 @@ def demo_page():
|
|
| 171 |
<h3>Result 2:</h3>
|
| 172 |
<img src="data:image/jpeg;base64,{encoded_img2}" />
|
| 173 |
<p><a href="/">Back</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
</body>
|
| 175 |
</html>
|
| 176 |
"""
|
|
@@ -201,6 +211,11 @@ def application_page():
|
|
| 201 |
<input type="submit" value="Rectangle It">
|
| 202 |
</form>
|
| 203 |
<a href="/">Back</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
</body>
|
| 205 |
</html>
|
| 206 |
"""
|
|
@@ -251,6 +266,11 @@ async def upload_file(file: UploadFile = File(...), padding_type: str = Form(...
|
|
| 251 |
<p><a href="data:image/jpeg;base64,{full_size_encoded_img}" download="rectangled_image.jpg">
|
| 252 |
Download Full-Size Image</a></p>
|
| 253 |
<p><a href="/">Back</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
</body>
|
| 255 |
</html>
|
| 256 |
""",
|
|
|
|
| 129 |
<li><a href="/demo">Demo</a></li>
|
| 130 |
<li><a href="/application">Application</a></li>
|
| 131 |
</ul>
|
| 132 |
+
<div id="credit">Images courtesy of
|
| 133 |
+
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
| 134 |
+
and
|
| 135 |
+
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 136 |
+
</div>
|
| 137 |
</body>
|
| 138 |
</html>
|
| 139 |
"""
|
|
|
|
| 176 |
<h3>Result 2:</h3>
|
| 177 |
<img src="data:image/jpeg;base64,{encoded_img2}" />
|
| 178 |
<p><a href="/">Back</a></p>
|
| 179 |
+
<div id="credit">Images courtesy of
|
| 180 |
+
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
| 181 |
+
and
|
| 182 |
+
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 183 |
+
</div>
|
| 184 |
</body>
|
| 185 |
</html>
|
| 186 |
"""
|
|
|
|
| 211 |
<input type="submit" value="Rectangle It">
|
| 212 |
</form>
|
| 213 |
<a href="/">Back</a>
|
| 214 |
+
<div id="credit">Images courtesy of
|
| 215 |
+
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
| 216 |
+
and
|
| 217 |
+
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 218 |
+
</div>
|
| 219 |
</body>
|
| 220 |
</html>
|
| 221 |
"""
|
|
|
|
| 266 |
<p><a href="data:image/jpeg;base64,{full_size_encoded_img}" download="rectangled_image.jpg">
|
| 267 |
Download Full-Size Image</a></p>
|
| 268 |
<p><a href="/">Back</a></p>
|
| 269 |
+
<div id="credit">Images courtesy of
|
| 270 |
+
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
| 271 |
+
and
|
| 272 |
+
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 273 |
+
</div>
|
| 274 |
</body>
|
| 275 |
</html>
|
| 276 |
""",
|