Spaces:
Sleeping
Sleeping
File size: 1,313 Bytes
afb5c93 6e8d873 606690b afb5c93 13303bb 89d0aed afb5c93 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | from transformers import pipeline
import gradio as gr
from helper import dates_binding
title = "Date Identification Demo"
description = "This is a simple demo just for demonstration purposes for the Serco team, to validate the first results of the Natural Language module concerning the identification of dates"
examples = [
["Earthquake located in Rome, Italy in 01/01/23 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in 1-1-2023 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in 1/1/23 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in January 1, 2023 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in Jan 1, 23 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in 1 January 2023 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in 1 Jan 23 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in January 2023 with magnitude greater than 6.2"],
["Earthquake located in Rome, Italy in Jan 2023 with magnitude greater than 6.2"],
]
gr.Interface(
fn=dates_binding,
inputs="text",
outputs="text",
title=title,
description=description,
examples=examples,
enable_queue=True,
).launch() |