Update app.py
Browse files
app.py
CHANGED
@@ -97,6 +97,11 @@ def home_page():
|
|
97 |
<li><a href="/demo">Demo</a></li>
|
98 |
<li><a href="/application">Application</a></li>
|
99 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
100 |
</div>
|
101 |
</body>
|
102 |
</html>
|
@@ -142,12 +147,12 @@ def demo_page():
|
|
142 |
<h3>Result 2:</h3>
|
143 |
<img src="data:image/jpeg;base64,{encoded_img2}" />
|
144 |
<p><a href="/">Back</a></p>
|
145 |
-
</div>
|
146 |
<div id="credit">Image creations by
|
147 |
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
148 |
and
|
149 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
150 |
</div>
|
|
|
151 |
</body>
|
152 |
</html>
|
153 |
"""
|
@@ -172,12 +177,12 @@ def application_page():
|
|
172 |
<input type="submit" value="Square It">
|
173 |
</form>
|
174 |
<a href="/">Back</a>
|
175 |
-
</div>
|
176 |
<div id="credit">Image creations by
|
177 |
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
178 |
and
|
179 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
180 |
</div>
|
|
|
181 |
</body>
|
182 |
</html>
|
183 |
"""
|
@@ -225,12 +230,12 @@ async def upload_file(file: UploadFile = File(...)):
|
|
225 |
<p><a href="data:image/jpeg;base64,{full_size_encoded_img}" download="squared_image.jpg">
|
226 |
Download Full-Size Image</a></p>
|
227 |
<p><a href="/">Back</a></p>
|
228 |
-
</div>
|
229 |
<div id="credit">Image creations by
|
230 |
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
231 |
and
|
232 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
233 |
</div>
|
|
|
234 |
</body>
|
235 |
</html>
|
236 |
""",
|
|
|
97 |
<li><a href="/demo">Demo</a></li>
|
98 |
<li><a href="/application">Application</a></li>
|
99 |
</ul>
|
100 |
+
<div id="credit">Image creations by
|
101 |
+
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
102 |
+
and
|
103 |
+
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
104 |
+
</div>
|
105 |
</div>
|
106 |
</body>
|
107 |
</html>
|
|
|
147 |
<h3>Result 2:</h3>
|
148 |
<img src="data:image/jpeg;base64,{encoded_img2}" />
|
149 |
<p><a href="/">Back</a></p>
|
|
|
150 |
<div id="credit">Image creations by
|
151 |
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
152 |
and
|
153 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
154 |
</div>
|
155 |
+
</div>
|
156 |
</body>
|
157 |
</html>
|
158 |
"""
|
|
|
177 |
<input type="submit" value="Square It">
|
178 |
</form>
|
179 |
<a href="/">Back</a>
|
|
|
180 |
<div id="credit">Image creations by
|
181 |
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
182 |
and
|
183 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
184 |
</div>
|
185 |
+
</div>
|
186 |
</body>
|
187 |
</html>
|
188 |
"""
|
|
|
230 |
<p><a href="data:image/jpeg;base64,{full_size_encoded_img}" download="squared_image.jpg">
|
231 |
Download Full-Size Image</a></p>
|
232 |
<p><a href="/">Back</a></p>
|
|
|
233 |
<div id="credit">Image creations by
|
234 |
<a href="https://stock.adobe.com/es/contributor/212598146/UMAMI%20LAB" target="_blank">Adobe Stock User Umami Lab</a>
|
235 |
and
|
236 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
237 |
</div>
|
238 |
+
</div>
|
239 |
</body>
|
240 |
</html>
|
241 |
""",
|