Specify Pandas DataFrame input
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ weather = get_7day_weather(api_key)
|
|
| 157 |
|
| 158 |
iface = gr.Interface(
|
| 159 |
fn=forecast_traffic,
|
| 160 |
-
inputs=[*day_buttons, gr.DataFrame(weather)],
|
| 161 |
outputs=[gr.Plot(), gr.Text()],
|
| 162 |
)
|
| 163 |
|
|
|
|
| 157 |
|
| 158 |
iface = gr.Interface(
|
| 159 |
fn=forecast_traffic,
|
| 160 |
+
inputs=[*day_buttons, gr.DataFrame(value = weather, type="pandas")],
|
| 161 |
outputs=[gr.Plot(), gr.Text()],
|
| 162 |
)
|
| 163 |
|