Youssouf Traore commited on
Commit ·
da37e36
1
Parent(s): 12cb411
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,11 @@ iface = gr.Interface(fn=get_covid_data,
|
|
| 25 |
inputs="text",
|
| 26 |
outputs=gr.outputs.HTML(),
|
| 27 |
title="COVID-19 Data by Country",
|
| 28 |
-
description="Enter the name of a country to get COVID-19 data."
|
| 29 |
-
example="France")
|
| 30 |
|
| 31 |
# Ajouter la fonction display_table à l'interface Gradio
|
| 32 |
-
iface.
|
| 33 |
-
iface.
|
| 34 |
|
| 35 |
# Lancement de l'interface
|
| 36 |
iface.launch()
|
|
|
|
| 25 |
inputs="text",
|
| 26 |
outputs=gr.outputs.HTML(),
|
| 27 |
title="COVID-19 Data by Country",
|
| 28 |
+
description="Enter the name of a country to get COVID-19 data.")
|
|
|
|
| 29 |
|
| 30 |
# Ajouter la fonction display_table à l'interface Gradio
|
| 31 |
+
iface.output(0).type = "python"
|
| 32 |
+
iface.output(0).update(display_table)
|
| 33 |
|
| 34 |
# Lancement de l'interface
|
| 35 |
iface.launch()
|