yixuantt commited on
Commit
1372f55
1 Parent(s): 783b0b7
Files changed (2) hide show
  1. app.py +4 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -3,7 +3,10 @@ import pandas as pd
3
 
4
 
5
  def load_data():
6
- return pd.read_csv("https://docs.google.com/spreadsheets/d/1Ui9gZoSKxSIW0B7fG8ryuN0nhkVhAckFxl2hWf6CaJQ/edit?usp=sharing")
 
 
 
7
 
8
  def case_insensitive_search(data, query, column):
9
  if query:
 
3
 
4
 
5
  def load_data():
6
+ GSheetsConnection = "https://docs.google.com/spreadsheets/d/1Ui9gZoSKxSIW0B7fG8ryuN0nhkVhAckFxl2hWf6CaJQ/edit?usp=sharing"
7
+ conn = st.connection("gsheets", type=GSheetsConnection)
8
+ df = conn.read()
9
+ return df
10
 
11
  def case_insensitive_search(data, query, column):
12
  if query:
requirements.txt CHANGED
@@ -1 +1,2 @@
1
  fuzzywuzzy
 
 
1
  fuzzywuzzy
2
+ st-gsheets-connection