Spaces:
Sleeping
Sleeping
Replace SVG map with custom WA mining illustration
Browse files- .gitattributes +1 -0
- __pycache__/app.cpython-39.pyc +0 -0
- app.py +8 -25
- wa_mining_map.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
wa_mining_map.png filter=lfs diff=lfs merge=lfs -text
|
__pycache__/app.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
|
|
|
app.py
CHANGED
|
@@ -34,30 +34,6 @@ EXAMPLES = [
|
|
| 34 |
"Explain the difference between IOCG and orogenic gold deposit models.",
|
| 35 |
]
|
| 36 |
|
| 37 |
-
# Simplified SVG map of Australia with Western Australia highlighted
|
| 38 |
-
AUSTRALIA_MAP_SVG = """
|
| 39 |
-
<svg viewBox="0 0 340 300" xmlns="http://www.w3.org/2000/svg" style="max-width:180px; display:block; margin:auto;">
|
| 40 |
-
<!-- Eastern Australia -->
|
| 41 |
-
<path d="
|
| 42 |
-
M130,18 L155,12 L180,10 L205,12 L225,8 L245,15 L258,22 L268,35
|
| 43 |
-
L275,50 L272,65 L278,80 L285,95 L290,110 L288,130 L282,150
|
| 44 |
-
L272,168 L260,182 L248,195 L235,208 L218,220 L200,230
|
| 45 |
-
L182,238 L165,243 L148,245 L135,243 L125,240 L130,18 Z
|
| 46 |
-
" fill="#d1d5db" stroke="#94a3b8" stroke-width="1.5"/>
|
| 47 |
-
<!-- Western Australia (highlighted) -->
|
| 48 |
-
<path d="
|
| 49 |
-
M130,18 L125,240 L112,238 L98,230 L85,218 L72,202 L62,185
|
| 50 |
-
L52,165 L44,145 L38,125 L35,105 L34,85 L36,65 L40,48
|
| 51 |
-
L48,34 L58,24 L72,16 L88,12 L105,10 L120,12 L130,18 Z
|
| 52 |
-
" fill="#f59e0b" stroke="#94a3b8" stroke-width="1.5"/>
|
| 53 |
-
<!-- WA / East dividing line -->
|
| 54 |
-
<line x1="130" y1="18" x2="125" y2="240" stroke="#94a3b8" stroke-width="1" stroke-dasharray="4,3"/>
|
| 55 |
-
<!-- Tasmania -->
|
| 56 |
-
<ellipse cx="265" cy="258" rx="14" ry="12" fill="#d1d5db" stroke="#94a3b8" stroke-width="1.5"/>
|
| 57 |
-
<!-- WA label -->
|
| 58 |
-
<text x="82" y="138" font-family="Sora, sans-serif" font-size="16" font-weight="700" fill="#92400e" text-anchor="middle">WA</text>
|
| 59 |
-
</svg>
|
| 60 |
-
"""
|
| 61 |
|
| 62 |
# ---------------------------------------------------------------------------
|
| 63 |
# Model loading
|
|
@@ -161,7 +137,14 @@ with gr.Blocks(theme=theme, title="GeoLLM") as demo:
|
|
| 161 |
"\u23f3 *Running on free CPU — responses may take 30\u201360 seconds.*"
|
| 162 |
)
|
| 163 |
with gr.Column(scale=1, min_width=200):
|
| 164 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
gr.Markdown(
|
| 166 |
"<center>\U0001f4cd <b>Focus: Western Australia</b><br>"
|
| 167 |
"Yilgarn \u00b7 Pilbara \u00b7 Murchison \u00b7 Gascoyne</center>"
|
|
|
|
| 34 |
"Explain the difference between IOCG and orogenic gold deposit models.",
|
| 35 |
]
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
# ---------------------------------------------------------------------------
|
| 39 |
# Model loading
|
|
|
|
| 137 |
"\u23f3 *Running on free CPU — responses may take 30\u201360 seconds.*"
|
| 138 |
)
|
| 139 |
with gr.Column(scale=1, min_width=200):
|
| 140 |
+
gr.Image(
|
| 141 |
+
value="wa_mining_map.png",
|
| 142 |
+
show_label=False,
|
| 143 |
+
show_download_button=False,
|
| 144 |
+
show_share_button=False,
|
| 145 |
+
container=False,
|
| 146 |
+
height=220,
|
| 147 |
+
)
|
| 148 |
gr.Markdown(
|
| 149 |
"<center>\U0001f4cd <b>Focus: Western Australia</b><br>"
|
| 150 |
"Yilgarn \u00b7 Pilbara \u00b7 Murchison \u00b7 Gascoyne</center>"
|
wa_mining_map.png
ADDED
|
Git LFS Details
|