Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from glob import glob
|
|
15 |
import wget
|
16 |
|
17 |
|
18 |
-
def predict(lat, lon):
|
19 |
cord = [lon,lat]
|
20 |
lon = round(lon,4)
|
21 |
lat = round(lat,4)
|
@@ -86,7 +86,7 @@ article = "Created by data354."
|
|
86 |
|
87 |
# Create examples list from "examples/" directory
|
88 |
#example_list = [["examples/" + example] for example in os.listdir("examples")]
|
89 |
-
example_list = [[5.379913, -4.050445],[5.363292, -3.9481601],[5.316458, -4.017172],[5.346938, -4.027849]]
|
90 |
|
91 |
outputs = [
|
92 |
gr.Textbox(label="Cloud coverage"),
|
@@ -98,7 +98,7 @@ outputs = [
|
|
98 |
|
99 |
demo = gr.Interface(
|
100 |
fn=predict,
|
101 |
-
inputs=["number", "number"],
|
102 |
outputs=outputs, #[ "text", "text","text","text","text"],
|
103 |
examples=example_list,
|
104 |
title=title,
|
|
|
15 |
import wget
|
16 |
|
17 |
|
18 |
+
def predict(location_name,lat, lon):
|
19 |
cord = [lon,lat]
|
20 |
lon = round(lon,4)
|
21 |
lat = round(lat,4)
|
|
|
86 |
|
87 |
# Create examples list from "examples/" directory
|
88 |
#example_list = [["examples/" + example] for example in os.listdir("examples")]
|
89 |
+
example_list = [["Foret du banco :",5.379913, -4.050445],["Pharmacie Y4 :",5.363292, -3.9481601],["Hotel ivoire :",5.316458, -4.017172],["Adjamé :",5.346938, -4.027849]]
|
90 |
|
91 |
outputs = [
|
92 |
gr.Textbox(label="Cloud coverage"),
|
|
|
98 |
|
99 |
demo = gr.Interface(
|
100 |
fn=predict,
|
101 |
+
inputs=["text","number", "number"],
|
102 |
outputs=outputs, #[ "text", "text","text","text","text"],
|
103 |
examples=example_list,
|
104 |
title=title,
|