fix: simple mode only has automatic geolocalisation
Browse files- app/mode_simple.py +0 -19
app/mode_simple.py
CHANGED
@@ -98,25 +98,6 @@ with gr.Blocks(theme='shivi/calm_seafoam') as simple:
|
|
98 |
btn_gpslocation = gr.Button("Get Coordinates using GPS (Permission required)")
|
99 |
btn_gpslocation.click(None, [], [], js=js_geocode)
|
100 |
hidden_input.change(display_location, inputs=hidden_input, outputs=location_data)
|
101 |
-
|
102 |
-
from geolocalisation.maps import get_location
|
103 |
-
with gr.Column(scale=1):
|
104 |
-
gr.Markdown("#### Location (Using address)")
|
105 |
-
location = gr.Textbox(visible=True, interactive=True,
|
106 |
-
label="Location of Sighting")
|
107 |
-
#display location processing
|
108 |
-
identified_location= gr.Textbox(visible=False, interactive=False,
|
109 |
-
label="Identified GPS Location")
|
110 |
-
with gr.Row():
|
111 |
-
#to submit it
|
112 |
-
submit_location = gr.Button("Get Coordinates using address",
|
113 |
-
visible=True, interactive=True, scale=3)
|
114 |
-
submit_location.click(get_location, inputs=[location, individual], outputs=[identified_location, individual])
|
115 |
-
#to clear it
|
116 |
-
clear_location = gr.ClearButton(components=[location, identified_location],
|
117 |
-
visible=True, interactive=True, scale=1
|
118 |
-
)
|
119 |
-
clear_location.click()
|
120 |
|
121 |
# ---------------------------------------------------------
|
122 |
# Dead and Wounded Buttons
|
|
|
98 |
btn_gpslocation = gr.Button("Get Coordinates using GPS (Permission required)")
|
99 |
btn_gpslocation.click(None, [], [], js=js_geocode)
|
100 |
hidden_input.change(display_location, inputs=hidden_input, outputs=location_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
# ---------------------------------------------------------
|
103 |
# Dead and Wounded Buttons
|