ValadisCERTH's picture
Update app.py
9186715
raw
history blame
889 Bytes
from transformers import pipeline
import gradio as gr
title = "Natural Language module Demo for Countries/Cities"
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"
examples = [
["Earthquake located in Ishkoshim, Tajikistan in 2018 05 09 with magnitude greater than 6.2"],
["Give me all the earthquakes with magnitude above than 6 in the region of Athens"],
["Earthquake happened in Rome during 1986 with a magnitude of 6"],
["I want all earthquakes larger than 5.0 that occurred in Rome during 2020"]
]
gr.Interface(
fn=identify_locations,
inputs="text",
outputs="text",
title=title,
description=description,
examples=examples,
enable_queue=True,
).launch()