Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from st_aggrid.shared import JsCode
|
|
| 8 |
|
| 9 |
###################################
|
| 10 |
|
| 11 |
-
from
|
| 12 |
|
| 13 |
###################################
|
| 14 |
|
|
@@ -28,37 +28,12 @@ def _max_width_():
|
|
| 28 |
|
| 29 |
st.set_page_config(page_icon="✂️", page_title="CSV Wrangler")
|
| 30 |
|
| 31 |
-
# st.image("https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/285/balloon_1f388.png", width=100)
|
| 32 |
st.image(
|
| 33 |
"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/285/scissors_2702-fe0f.png",
|
| 34 |
width=100,
|
| 35 |
)
|
| 36 |
|
| 37 |
-
st.title("CSV
|
| 38 |
-
|
| 39 |
-
# st.caption(
|
| 40 |
-
# "PRD : TBC | Streamlit Ag-Grid from Pablo Fonseca: https://pypi.org/project/streamlit-aggrid/"
|
| 41 |
-
# )
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
# ModelType = st.radio(
|
| 45 |
-
# "Choose your model",
|
| 46 |
-
# ["Flair", "DistilBERT (Default)"],
|
| 47 |
-
# help="At present, you can choose between 2 models (Flair or DistilBERT) to embed your text. More to come!",
|
| 48 |
-
# )
|
| 49 |
-
|
| 50 |
-
# with st.expander("ToDo's", expanded=False):
|
| 51 |
-
# st.markdown(
|
| 52 |
-
# """
|
| 53 |
-
# - Add pandas.json_normalize() - https://streamlit.slack.com/archives/D02CQ5Z5GHG/p1633102204005500
|
| 54 |
-
# - **Remove 200 MB limit and test with larger CSVs**. Currently, the content is embedded in base64 format, so we may end up with a large HTML file for the browser to render
|
| 55 |
-
# - **Add an encoding selector** (to cater for a wider array of encoding types)
|
| 56 |
-
# - **Expand accepted file types** (currently only .csv can be imported. Could expand to .xlsx, .txt & more)
|
| 57 |
-
# - Add the ability to convert to pivot → filter → export wrangled output (Pablo is due to change AgGrid to allow export of pivoted/grouped data)
|
| 58 |
-
# """
|
| 59 |
-
# )
|
| 60 |
-
#
|
| 61 |
-
# st.text("")
|
| 62 |
|
| 63 |
|
| 64 |
c29, c30, c31 = st.columns([1, 6, 1])
|
|
|
|
| 8 |
|
| 9 |
###################################
|
| 10 |
|
| 11 |
+
from download import download_button
|
| 12 |
|
| 13 |
###################################
|
| 14 |
|
|
|
|
| 28 |
|
| 29 |
st.set_page_config(page_icon="✂️", page_title="CSV Wrangler")
|
| 30 |
|
|
|
|
| 31 |
st.image(
|
| 32 |
"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/285/scissors_2702-fe0f.png",
|
| 33 |
width=100,
|
| 34 |
)
|
| 35 |
|
| 36 |
+
st.title("CSV Dataset Analyzer")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
c29, c30, c31 = st.columns([1, 6, 1])
|