ValadisCERTH commited on
Commit
400d641
·
1 Parent(s): 13d7c9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -1,16 +1,20 @@
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
- from helper import identify_locations
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
- ["Earthquake located in Ishkoshim, Tajikistan in 2018 05 09 with magnitude greater than 6.2"],
11
- ["Give me all the earthquakes with magnitude above than 6 in the region of Athens"],
12
- ["Earthquake happened in Rome during 1986 with a magnitude of 6"],
13
- ["I want all earthquakes larger than 5.0 that occurred in Rome during 2020"]
 
 
 
 
 
 
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()