Spaces:
Runtime error
Runtime error
Vinay Kudari commited on
Commit ·
123203d
1
Parent(s): ae84d3d
Add application file
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
description = "CSE635 - Ensemble"
|
| 4 |
+
title = "Strctured Data Summarizer - ACLED"
|
| 5 |
+
examples = [["event_date:17-August-2019, fatalities:0, event_type:Protests, sub_event_type:Peaceful Protest, actor1:Protesters(Sudan), location:Sudan"]]
|
| 6 |
+
|
| 7 |
+
interface = gr.Interface.load("huggingface/vinaykudari/t5-acled-t2s",
|
| 8 |
+
description=description,
|
| 9 |
+
examples=examples
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
interface.launch()
|