Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,6 +66,7 @@ import tensorflow as tf
|
|
| 66 |
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
| 67 |
import spacy
|
| 68 |
from tensorflow.keras.preprocessing.text import Tokenizer
|
|
|
|
| 69 |
#from spacy import en_core_web_lg
|
| 70 |
#import en_core_web_lg
|
| 71 |
#nlp = en_core_web_lg.load()
|
|
@@ -560,7 +561,7 @@ def main():
|
|
| 560 |
|
| 561 |
with st.container():
|
| 562 |
|
| 563 |
-
|
| 564 |
st.markdown('<a href="https://huggingface.co/spaces/KGBrain/visual-knowledgegraph" target="_blank">Click this link in a separate tab to view knowledge graph</a>', unsafe_allow_html=True)
|
| 565 |
# st.download_button(label="Download the detailed result table_csv",data=csv1,file_name='results.csv',mime='text/csv')
|
| 566 |
# st.download_button(label="Download the result table_csv",data=csv2,file_name='final_data.csv',mime='text/csv')
|
|
|
|
| 66 |
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
| 67 |
import spacy
|
| 68 |
from tensorflow.keras.preprocessing.text import Tokenizer
|
| 69 |
+
import streamlit_ext as ste
|
| 70 |
#from spacy import en_core_web_lg
|
| 71 |
#import en_core_web_lg
|
| 72 |
#nlp = en_core_web_lg.load()
|
|
|
|
| 561 |
|
| 562 |
with st.container():
|
| 563 |
|
| 564 |
+
ste.download_button(label="Download the result table",data=buffer,file_name="t2cg_outputs.xlsx",mime="application/vnd.ms-excel")
|
| 565 |
st.markdown('<a href="https://huggingface.co/spaces/KGBrain/visual-knowledgegraph" target="_blank">Click this link in a separate tab to view knowledge graph</a>', unsafe_allow_html=True)
|
| 566 |
# st.download_button(label="Download the detailed result table_csv",data=csv1,file_name='results.csv',mime='text/csv')
|
| 567 |
# st.download_button(label="Download the result table_csv",data=csv2,file_name='final_data.csv',mime='text/csv')
|