Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
hide_streamlit_style = """
|
| 5 |
<style>
|
| 6 |
#MainMenu {visibility: hidden;}
|
|
@@ -9,14 +16,6 @@ hide_streamlit_style = """
|
|
| 9 |
"""
|
| 10 |
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
| 11 |
|
| 12 |
-
st.set_page_config(
|
| 13 |
-
page_title="File Checker",
|
| 14 |
-
page_icon="🥥",
|
| 15 |
-
layout="wide"
|
| 16 |
-
)
|
| 17 |
-
st.title('🥥 File Checker')
|
| 18 |
-
|
| 19 |
-
st.subheader('Put your file here...')
|
| 20 |
|
| 21 |
def reset_data():
|
| 22 |
st.cache_data.clear()
|
|
@@ -43,6 +42,9 @@ def conv_txt(extype):
|
|
| 43 |
keywords.rename(columns=col_dict, inplace=True)
|
| 44 |
return keywords
|
| 45 |
|
|
|
|
|
|
|
|
|
|
| 46 |
#===read data===
|
| 47 |
uploaded_file = st.file_uploader("Choose your a file", type=['csv','txt'], on_change=reset_data)
|
| 48 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
|
| 4 |
+
st.set_page_config(
|
| 5 |
+
page_title="File Checker",
|
| 6 |
+
page_icon="🥥",
|
| 7 |
+
layout="wide"
|
| 8 |
+
)
|
| 9 |
+
st.title('🥥 File Checker')
|
| 10 |
+
|
| 11 |
hide_streamlit_style = """
|
| 12 |
<style>
|
| 13 |
#MainMenu {visibility: hidden;}
|
|
|
|
| 16 |
"""
|
| 17 |
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
def reset_data():
|
| 21 |
st.cache_data.clear()
|
|
|
|
| 42 |
keywords.rename(columns=col_dict, inplace=True)
|
| 43 |
return keywords
|
| 44 |
|
| 45 |
+
|
| 46 |
+
st.subheader('Put your file here...')
|
| 47 |
+
|
| 48 |
#===read data===
|
| 49 |
uploaded_file = st.file_uploader("Choose your a file", type=['csv','txt'], on_change=reset_data)
|
| 50 |
|