Spaces:
Running
Running
Bram Vanroy
commited on
Commit
Β·
3d26c4a
1
Parent(s):
51df785
add page config
Browse files
app.py
CHANGED
@@ -3,15 +3,21 @@ from collections import Counter
|
|
3 |
|
4 |
import graphviz
|
5 |
import penman
|
6 |
-
from penman.models.noop import NoOpModel
|
7 |
from mbart_amr.data.linearization import linearized2penmanstr
|
|
|
|
|
8 |
from transformers import LogitsProcessorList
|
9 |
|
|
|
|
|
10 |
import streamlit as st
|
11 |
|
12 |
-
|
|
|
|
|
|
|
13 |
|
14 |
-
st.title("π©βπ» Multilingual text to AMR")
|
15 |
|
16 |
with st.form("input data"):
|
17 |
text_col, lang_col = st.columns((4, 1))
|
|
|
3 |
|
4 |
import graphviz
|
5 |
import penman
|
|
|
6 |
from mbart_amr.data.linearization import linearized2penmanstr
|
7 |
+
from penman.models.noop import NoOpModel
|
8 |
+
import streamlit as st
|
9 |
from transformers import LogitsProcessorList
|
10 |
|
11 |
+
from utils import get_resources, LANGUAGES, translate
|
12 |
+
|
13 |
import streamlit as st
|
14 |
|
15 |
+
st.set_page_config(
|
16 |
+
page_title="Text-to-AMR demo by Bram Vanroy",
|
17 |
+
page_icon="π©βπ»"
|
18 |
+
)
|
19 |
|
20 |
+
st.title("π©βπ» Multilingual text to AMR α΅α΅α΅α΅")
|
21 |
|
22 |
with st.form("input data"):
|
23 |
text_col, lang_col = st.columns((4, 1))
|