Skip to content

Commit

Permalink
Merge pull request #4 from edrdo/master
Browse files Browse the repository at this point in the history
Fixed deployment errors
  • Loading branch information
tmsm1999 authored Nov 15, 2020
2 parents 5db6565 + 10f1577 commit 74ec957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
model = modelo.Model(model_file, label_file)

speciesInfoJSON = application.root_path + "/species_info.json"
file = open("species_info.json")
file = open("species_info.json", encoding="utf-8")
data = json.load(file)

family_dict = dict()
Expand Down
8 changes: 4 additions & 4 deletions templates/Model_WebPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>

<div style="z-index: -1; position: fixed; left: 50%; margin-right: -50%; transform: translate(-50%, 0%)">
<img src="../static/background.png" alt="Lepilens logo" style="opacity: 0.5;">
<img src="{{ url_for('static', filename='background.png') }}" alt="Lepilens logo" style="opacity: 0.5;">
</div>

<h1>Lepilens Web</h1>
Expand All @@ -23,7 +23,7 @@ <h1>Lepilens Web</h1>
<br>
<br>
<a href="https://testflight.apple.com/join/h4vpWJoe">
<img src="../static/Download_on_the_App_Store_Badge_US-UK_RGB_blk_092917.svg" alt="Lepilens logo">
<img src="{{ url_for('static', filename='Download_on_the_App_Store_Badge_US-UK_RGB_blk_092917.svg') }}" alt="Download on the App store">
</a>
</div>

Expand Down Expand Up @@ -128,10 +128,10 @@ <h2>Results</h2>
<div id="common_name + {{item}}" class="result_label"></div>
<div id="links_div" style="margin-top: 5px;">
<a id="inaturalist + {{item}}" href="">
<img src="../static/inaturalist_logo.png" alt="iNaturalist Logo">
<img src="{{ url_for('static', filename='inaturalist_logo.png') }}" alt="iNaturalist Logo">
</a>
<a id="wikipedia + {{item}}" href="">
<img src="../static/wikipedia_logo.png" alt="Wikipedia Logo">
<img src="{{ url_for('static', filename='wikipedia_logo.png') }}" alt="Wikipedia Logo">
</a>
</div>
<script>
Expand Down

0 comments on commit 74ec957

Please sign in to comment.