Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ def demo_page():
|
|
| 131 |
</head>
|
| 132 |
<body>
|
| 133 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 134 |
-
<h2>
|
| 135 |
<p>Image will be rectangled with color filler where applicable.</p>
|
| 136 |
<h3>Result 1:</h3>
|
| 137 |
<img src="data:image/jpeg;base64,{encoded_img1}" />
|
|
@@ -153,11 +153,11 @@ def application_page():
|
|
| 153 |
</head>
|
| 154 |
<body>
|
| 155 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 156 |
-
<h2>
|
| 157 |
-
<p>Upload a JPG image to
|
| 158 |
<form action="/upload/" enctype="multipart/form-data" method="post">
|
| 159 |
<input name="file" type="file">
|
| 160 |
-
<input type="submit" value="
|
| 161 |
</form>
|
| 162 |
<a href="/">Back</a>
|
| 163 |
</body>
|
|
|
|
| 131 |
</head>
|
| 132 |
<body>
|
| 133 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 134 |
+
<h2>Rectangle Image Demo</h2>
|
| 135 |
<p>Image will be rectangled with color filler where applicable.</p>
|
| 136 |
<h3>Result 1:</h3>
|
| 137 |
<img src="data:image/jpeg;base64,{encoded_img1}" />
|
|
|
|
| 153 |
</head>
|
| 154 |
<body>
|
| 155 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 156 |
+
<h2>Rectangle Image Application</h2>
|
| 157 |
+
<p>Upload a JPG image to rectangle and fill with color filler.</p>
|
| 158 |
<form action="/upload/" enctype="multipart/form-data" method="post">
|
| 159 |
<input name="file" type="file">
|
| 160 |
+
<input type="submit" value="Rectangle It">
|
| 161 |
</form>
|
| 162 |
<a href="/">Back</a>
|
| 163 |
</body>
|