Spaces:
Runtime error
Runtime error
matheuscvp
commited on
Commit
·
6cb7afd
1
Parent(s):
c109ee3
update
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def predict(wind, temp_max, temp_min, precipitation):
|
|
42 |
prediction = model.predict(df)
|
43 |
prediction2 = model2.predict(df)
|
44 |
|
45 |
-
return
|
46 |
|
47 |
iface = gr.Interface(
|
48 |
fn=predict,
|
@@ -54,7 +54,7 @@ iface = gr.Interface(
|
|
54 |
gr.inputs.Slider(-10, 40, default=10, label="temp_min"),
|
55 |
gr.inputs.Slider(0, 10, default=5, label="wind"),
|
56 |
],
|
57 |
-
outputs="text",
|
58 |
)
|
59 |
|
60 |
iface.launch()
|
|
|
42 |
prediction = model.predict(df)
|
43 |
prediction2 = model2.predict(df)
|
44 |
|
45 |
+
return [options[round(max(prediction))], options[round(max(prediction2))]]
|
46 |
|
47 |
iface = gr.Interface(
|
48 |
fn=predict,
|
|
|
54 |
gr.inputs.Slider(-10, 40, default=10, label="temp_min"),
|
55 |
gr.inputs.Slider(0, 10, default=5, label="wind"),
|
56 |
],
|
57 |
+
outputs=["text", "text"],
|
58 |
)
|
59 |
|
60 |
iface.launch()
|