Spaces:
Build error
Build error
Commit ·
400d641
1
Parent(s): 13d7c9d
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,20 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
title = "Natural Language module Demo for Countries/Cities"
|
| 7 |
-
description = "This is a simple demo just for demonstration purposes, so that Serco team might have the chance to validate the results of the Natural Language module concerning countries/cities identification, while in progress"
|
| 8 |
|
| 9 |
examples = [
|
| 10 |
-
["
|
| 11 |
-
["
|
| 12 |
-
["
|
| 13 |
-
["I want
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
]
|
| 15 |
|
| 16 |
gr.Interface(
|
|
@@ -20,4 +24,5 @@ gr.Interface(
|
|
| 20 |
title=title,
|
| 21 |
description=description,
|
| 22 |
examples=examples,
|
|
|
|
| 23 |
).launch()
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
title = "Countries/Cities Demo"
|
| 5 |
+
description = "This is a simple demo just for demonstration purposes for Serco team, to validate the results of the Natural Language module concerning countries and cities identification, while in progress"
|
|
|
|
|
|
|
| 6 |
|
| 7 |
examples = [
|
| 8 |
+
["I want an earthquake that is located in Italy, in 01/01/23 with magnitude greater than 6.2"],
|
| 9 |
+
["I want an earthquake that is located in United Arab Emirates, in 01/01/23 with magnitude greater than 6.2"],
|
| 10 |
+
["I want an earthquake that is located in Rome, in 01/01/23 with magnitude greater than 6.2"],
|
| 11 |
+
["I want an earthquake that is located in Buenos Aires, in 01/01/23 with magnitude greater than 6.2"],
|
| 12 |
+
["I want an earthquake that is located in Rome, Italy in 01/01/23 with magnitude greater than 6.2"],
|
| 13 |
+
["I want an earthquake that is located in Port Moresby, Papua New Guinea in 01/01/23 with magnitude greater than 6.2"],
|
| 14 |
+
["I want an earthquake that is located in Tajikistan, in 01/01/23 with magnitude greater than 6.2"],
|
| 15 |
+
["I want an earthquake that is located in Ishkashim, in 01/01/23 with magnitude greater than 6.2"],
|
| 16 |
+
["I want an earthquake that is located in Ishkashim, Tajikistan in 01/01/23 with magnitude greater than 6.2"],
|
| 17 |
+
["I want an earthquake that is located in Dibba Al-Fujairah in 01/01/23 with magnitude greater than 6.2"]
|
| 18 |
]
|
| 19 |
|
| 20 |
gr.Interface(
|
|
|
|
| 24 |
title=title,
|
| 25 |
description=description,
|
| 26 |
examples=examples,
|
| 27 |
+
enable_queue=True,
|
| 28 |
).launch()
|