Mayureshd commited on
Commit
d89477b
1 Parent(s): 3e1efac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ suspicious_words = [
29
  st.title("Crime Detection App")
30
 
31
  # Load data
32
- df = pd.read_excel('senti2.xlsx')
 
33
  parsed_column = df['sentences'].to_list()
34
 
35
  # Process sentences and store results
 
29
  st.title("Crime Detection App")
30
 
31
  # Load data
32
+ uploaded_file = st.file_uploader("Upload an Excel file", type=["xlsx", "xls"])
33
+ df = pd.read_excel(uploaded_file)
34
  parsed_column = df['sentences'].to_list()
35
 
36
  # Process sentences and store results