Youssouf Traore
commited on
Commit
·
fb0b48d
1
Parent(s):
23087d6
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,12 @@ def get_covid_data(country):
|
|
12 |
covid = Covid()
|
13 |
countries = covid.list_countries()
|
14 |
|
15 |
-
# Interface Gradio avec
|
16 |
iface = gr.Interface(fn=get_covid_data,
|
17 |
-
inputs=gr.inputs.
|
18 |
outputs=gr.outputs.JSON(),
|
19 |
title="COVID-19 Data by Country",
|
20 |
-
description="
|
21 |
|
22 |
# Fonction pour afficher les données sous forme de tableau
|
23 |
def display_table(data):
|
|
|
12 |
covid = Covid()
|
13 |
countries = covid.list_countries()
|
14 |
|
15 |
+
# Interface Gradio avec un champ de texte
|
16 |
iface = gr.Interface(fn=get_covid_data,
|
17 |
+
inputs=gr.inputs.Textbox(label="Enter a country"),
|
18 |
outputs=gr.outputs.JSON(),
|
19 |
title="COVID-19 Data by Country",
|
20 |
+
description="Enter a country name to get COVID-19 data.")
|
21 |
|
22 |
# Fonction pour afficher les données sous forme de tableau
|
23 |
def display_table(data):
|