ValadisCERTH/EarthquakeEventsModuleSerco
0
1from transformers import pipeline2import gradio as gr3 4from helper import identify_earthquake_event5 6title = "Earthquaqe events Demo"7description = "This is a simple demo just for demonstration purposes for Serco team, to validate the results of the Natural Language module concerning the identification of earthquaqe events, while in progress"8 9examples = [10 ["I want all earthquakes that are located in Italy, in 01/01/23 with magnitude greater than 6.2"],11 ["I want all seisms that are located in Italy, in 01/01/23 with magnitude greater than 6.2"],12 ["I want all earth shakes that are located in Italy, in 01/01/23 with magnitude greater than 6.2"],13 ["I want all bars that are located in Italy, in 01/01/23 with magnitude greater than 6.2"],14]15 16 17gr.Interface(18 fn=identify_earthquake_event, 19 inputs="text",20 outputs="text",21 title=title,22 description=description,23 examples=examples,24 enable_queue=True,25 ).launch()