Skip to content

Commit

Permalink
modification
Browse files Browse the repository at this point in the history
  • Loading branch information
kmswlee committed Apr 14, 2020
1 parent 4646019 commit 18c8b69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ def main():
<div class="jumbotron mt-3">
<h1>ainized-DeOldify</h1>
<A>Git hub repository : </A> <A href="https://bit.ly/39xp9db"> DeOldify </A> <br>
<A>API deployed on </A> <A href="http://bit.ly/390JkQr"> Ainize </A>
<A>API deployed on </A> <A href="http://bit.ly/390JkQr"> Ainize </A> <br>
<A>NOTE! </A><br>
<A>You need to put a url of an image you selected, not an image url from Google view of Google drive.<br>You can use an image url from this website, https://imgur.com/</A>
<A>If you want to put an image url from Google drive, You can use code:"https://drive.google.com/uc?export=view&id=${imageId}"</A> <br>
<A>You can use an image url from this website. </A> <A href="https://imgur.com/"> Link</A><br>
<A>Sample image homepage : </A> <A href="https://unsplash.com/wallpapers/colors/black-and-white"> Link</A> <br>
<hr class="my-4">
<h3>Image URL: <input id="source_url" placeholder="http://"> </h3><br>
<style>
Expand All @@ -100,11 +102,11 @@ def main():
<div>
<h2>Select type!</h2>
<input type="radio" name="type" id="option" value="picture"> Picture <br>
<input type="radio" name="type" id="option" value="anime"> Animation <br>
<input type="radio" name="type" id="option" value="anime"> sketch <br>
</div>
<h3>RUN: <button type="submit" class="btn btn-primary btn-lg" id="submit">Submit</button></h3>
<div id="result">
<image id="resultImage">
<image id="resultImage" width="960" height="540">
</div>
<script>
const run = (retry_cnt=0, retry_sec=1,) => {
Expand Down
6 changes: 3 additions & 3 deletions app_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from PIL import Image

def compress_image(image, path_original):
size = 1920, 1080
width = 1920
height = 1080
size = 960, 540
width = 960
height = 540

name = os.path.basename(path_original).split('.')
first_name = os.path.join(os.path.dirname(path_original), name[0] + '.jpg')
Expand Down

0 comments on commit 18c8b69

Please sign in to comment.