Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ IMAGE_FOLDER = './images'
|
|
38 |
CSV_FILE = './select.csv'
|
39 |
BASE_LOCATION = [0, 23]
|
40 |
RULES = """<h1>OSV-5M (plonk)</h1>
|
41 |
-
<center style="margin-bottom:
|
42 |
<h2> Instructions </h2>
|
43 |
<h3> Click on the map 🗺️ (left) to the location at which you think the image 🖼️ (right) was captured!</h3>
|
44 |
<h3 style="margin-bottom: 0.5em"> Click "Select" to finalize your selection and then "Next" to move to the next image.</h3>
|
@@ -49,8 +49,7 @@ RULES = """<h1>OSV-5M (plonk)</h1>
|
|
49 |
<h3 style="margin-bottom: 0.5em"> Like you, the AIs will need to pick up on geographic clues to pinpoint the locations of the images.</h3>
|
50 |
|
51 |
<h2> Geoscore </h2>
|
52 |
-
<h3> The geoscore is calculated based on how close each guess is to the true location as in Geoguessr, with a maximum of <b>5000 points
|
53 |
-
<h3> We use the formula $g(d) = 5000 \\exp(\\frac{-d}{1492.7})$ </h3>
|
54 |
"""
|
55 |
css = """
|
56 |
@font-face {
|
@@ -62,7 +61,7 @@ h1 {
|
|
62 |
text-align: center;
|
63 |
display:block;
|
64 |
font-family: custom;
|
65 |
-
font-size:
|
66 |
}
|
67 |
img {
|
68 |
text-align: center;
|
@@ -72,14 +71,14 @@ h2 {
|
|
72 |
text-align: center;
|
73 |
display:block;
|
74 |
font-family: custom;
|
75 |
-
font-size:
|
76 |
}
|
77 |
h3 {
|
78 |
text-align: center;
|
79 |
display:block;
|
80 |
font-family: custom;
|
81 |
font-weight: normal;
|
82 |
-
font-size:
|
83 |
}
|
84 |
"""
|
85 |
|
@@ -88,9 +87,6 @@ space_js = """
|
|
88 |
<script type="text/javascript"
|
89 |
src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
90 |
</script>
|
91 |
-
<script type="text/x-mathjax-config">
|
92 |
-
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
|
93 |
-
</script>
|
94 |
<script>
|
95 |
function shortcuts(e) {
|
96 |
var event = document.all ? window.event : e;
|
|
|
38 |
CSV_FILE = './select.csv'
|
39 |
BASE_LOCATION = [0, 23]
|
40 |
RULES = """<h1>OSV-5M (plonk)</h1>
|
41 |
+
<center style="margin-bottom: 1em; margin-top: 1em"><img width="256" alt="Rotating globe" src="https://upload.wikimedia.org/wikipedia/commons/6/6b/Rotating_globe.gif"></center>
|
42 |
<h2> Instructions </h2>
|
43 |
<h3> Click on the map 🗺️ (left) to the location at which you think the image 🖼️ (right) was captured!</h3>
|
44 |
<h3 style="margin-bottom: 0.5em"> Click "Select" to finalize your selection and then "Next" to move to the next image.</h3>
|
|
|
49 |
<h3 style="margin-bottom: 0.5em"> Like you, the AIs will need to pick up on geographic clues to pinpoint the locations of the images.</h3>
|
50 |
|
51 |
<h2> Geoscore </h2>
|
52 |
+
<h3> The geoscore is calculated based on how close each guess is to the true location as in Geoguessr, with a maximum of <b>5000 points: $$g(d) = 5000 \\exp(\\frac{-d}{1492.7})$$ </h3>
|
|
|
53 |
"""
|
54 |
css = """
|
55 |
@font-face {
|
|
|
61 |
text-align: center;
|
62 |
display:block;
|
63 |
font-family: custom;
|
64 |
+
font-size: 4em;
|
65 |
}
|
66 |
img {
|
67 |
text-align: center;
|
|
|
71 |
text-align: center;
|
72 |
display:block;
|
73 |
font-family: custom;
|
74 |
+
font-size: 3em;
|
75 |
}
|
76 |
h3 {
|
77 |
text-align: center;
|
78 |
display:block;
|
79 |
font-family: custom;
|
80 |
font-weight: normal;
|
81 |
+
font-size: 2em;
|
82 |
}
|
83 |
"""
|
84 |
|
|
|
87 |
<script type="text/javascript"
|
88 |
src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
89 |
</script>
|
|
|
|
|
|
|
90 |
<script>
|
91 |
function shortcuts(e) {
|
92 |
var event = document.all ? window.event : e;
|