Youssouf Traore
commited on
Commit
·
23087d6
1
Parent(s):
24e8221
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ countries = covid.list_countries()
|
|
15 |
# Interface Gradio avec une liste déroulante
|
16 |
iface = gr.Interface(fn=get_covid_data,
|
17 |
inputs=gr.inputs.Dropdown(countries, label="Select a country"),
|
18 |
-
outputs=gr.outputs.
|
19 |
title="COVID-19 Data by Country",
|
20 |
description="Select a country to get COVID-19 data.")
|
21 |
|
@@ -32,7 +32,7 @@ def display_table(data):
|
|
32 |
return table_html
|
33 |
|
34 |
# Ajouter la fonction display_table à l'interface Gradio
|
35 |
-
iface.
|
36 |
|
37 |
# Lancement de l'interface
|
38 |
iface.launch()
|
|
|
15 |
# Interface Gradio avec une liste déroulante
|
16 |
iface = gr.Interface(fn=get_covid_data,
|
17 |
inputs=gr.inputs.Dropdown(countries, label="Select a country"),
|
18 |
+
outputs=gr.outputs.JSON(),
|
19 |
title="COVID-19 Data by Country",
|
20 |
description="Select a country to get COVID-19 data.")
|
21 |
|
|
|
32 |
return table_html
|
33 |
|
34 |
# Ajouter la fonction display_table à l'interface Gradio
|
35 |
+
iface.out = display_table
|
36 |
|
37 |
# Lancement de l'interface
|
38 |
iface.launch()
|