Spaces:
Sleeping
Sleeping
updating app
Browse files
app.py
CHANGED
@@ -78,8 +78,11 @@ def main():
|
|
78 |
st.header('Entity-Relation Representation')
|
79 |
st.graphviz_chart(st.session_state['graph'], use_container_width=True)
|
80 |
|
|
|
|
|
81 |
else:
|
82 |
st.session_state['text'] = txt
|
|
|
83 |
|
84 |
# preprocess
|
85 |
sentence = ie.preprocess(txt)
|
@@ -121,8 +124,8 @@ def main():
|
|
121 |
single_submit=False
|
122 |
)
|
123 |
|
124 |
-
st.session_state['text'] = ''
|
125 |
-
st.session_state['graph'] = None
|
126 |
|
127 |
|
128 |
if __name__ == '__main__':
|
|
|
78 |
st.header('Entity-Relation Representation')
|
79 |
st.graphviz_chart(st.session_state['graph'], use_container_width=True)
|
80 |
|
81 |
+
st.session_state['text'] = txt
|
82 |
+
|
83 |
else:
|
84 |
st.session_state['text'] = txt
|
85 |
+
st.session_state['graph'] = None
|
86 |
|
87 |
# preprocess
|
88 |
sentence = ie.preprocess(txt)
|
|
|
124 |
single_submit=False
|
125 |
)
|
126 |
|
127 |
+
# st.session_state['text'] = ''
|
128 |
+
# st.session_state['graph'] = None
|
129 |
|
130 |
|
131 |
if __name__ == '__main__':
|