import gradio as gr description = "Given the different extracted information fields from a reported event, generate an ACLED style summary of the event." title = "Structured Data Summarizer" examples = [["summarize: event_date:22-July-2022, source:ESAT, fatalities:0, event_type:Battles, sub_event_type:Armed Clash, actor1:TPLF: Tigray People's Liberation Front, inter1:Rebel Groups, actor2:Military Forces of Ethiopia (2018-), inter2:State Forces, location:Aba Mar"]] interface = gr.Interface.load("huggingface/vinaykudari/t5-acled-t2s", description=description, examples=examples, title=title, ) interface.launch()