vonshed commited on
Commit
81fa7a9
1 Parent(s): a86f31b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+ def main():
5
+ st.title("CSV File Viewer")
6
+
7
+ # Allow the user to upload a CSV file
8
+ uploaded_file = st.file_uploader("Upload a CSV file", type="csv")
9
+
10
+ if uploaded_file is not None:
11
+ # Load the CSV file into a DataFrame
12
+ df = pd.read_csv(uploaded_file)
13
+
14
+ # Display the number of rows in the DataFrame
15
+ st.write(f"The number of rows in the CSV file is: {len(df)}")
16
+
17
+ if __name__ == "__main__":
18
+ main()