Spaces:
Build error
Build error
added creds
Browse files
app.py
CHANGED
@@ -145,16 +145,16 @@ def show_wiki_hub_page():
|
|
145 |
|
146 |
if len(st.session_state['wiki_text']) > 0:
|
147 |
st.button("Generate", on_click=wiki_generate_graph, key="gen_graph")
|
148 |
-
|
149 |
-
if st.session_state['has_run']:
|
150 |
-
st.sidebar.markdown(
|
151 |
-
"""
|
152 |
-
# How to expand the graph
|
153 |
-
- Click a button on the right to expand that node
|
154 |
-
- Only nodes that have wiki pages will be expanded
|
155 |
-
- Hit the Generate button again to expand your graph!
|
156 |
"""
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
HtmlFile = open(st.session_state["GRAPH_FILENAME"], 'r', encoding='utf-8')
|
160 |
source_code = HtmlFile.read()
|
@@ -187,13 +187,6 @@ def show_free_text_hub_page():
|
|
187 |
"""
|
188 |
)
|
189 |
|
190 |
-
st.sidebar.markdown(
|
191 |
-
"""
|
192 |
-
Credits for the REBEL model go out to Pere-Lluís Huguet Cabot and Roberto Navigli.
|
193 |
-
The code can be found [here](https://github.com/Babelscape/rebel),
|
194 |
-
and the original paper [here](https://github.com/Babelscape/rebel/blob/main/docs/EMNLP_2021_REBEL__Camera_Ready_.pdf)
|
195 |
-
"""
|
196 |
-
)
|
197 |
st.sidebar.button("Reset", key="reset_key")
|
198 |
free_text_layout()
|
199 |
if st.session_state['has_run']:
|
@@ -209,3 +202,10 @@ else:
|
|
209 |
show_free_text_hub_page()
|
210 |
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
if len(st.session_state['wiki_text']) > 0:
|
147 |
st.button("Generate", on_click=wiki_generate_graph, key="gen_graph")
|
148 |
+
st.sidebar.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
"""
|
150 |
+
# How to expand the graph
|
151 |
+
- Click a button on the right to expand that node
|
152 |
+
- Only nodes that have wiki pages will be expanded
|
153 |
+
- Hit the Generate button again to expand your graph!
|
154 |
+
"""
|
155 |
+
)
|
156 |
+
if st.session_state['has_run']:
|
157 |
+
|
158 |
|
159 |
HtmlFile = open(st.session_state["GRAPH_FILENAME"], 'r', encoding='utf-8')
|
160 |
source_code = HtmlFile.read()
|
|
|
187 |
"""
|
188 |
)
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
st.sidebar.button("Reset", key="reset_key")
|
191 |
free_text_layout()
|
192 |
if st.session_state['has_run']:
|
|
|
202 |
show_free_text_hub_page()
|
203 |
|
204 |
|
205 |
+
st.sidebar.markdown(
|
206 |
+
"""
|
207 |
+
Credits for the REBEL model go out to Pere-Lluís Huguet Cabot and Roberto Navigli.
|
208 |
+
The code can be found [here](https://github.com/Babelscape/rebel),
|
209 |
+
and the original paper [here](https://github.com/Babelscape/rebel/blob/main/docs/EMNLP_2021_REBEL__Camera_Ready_.pdf)
|
210 |
+
"""
|
211 |
+
)
|