lunarflu HF staff commited on
Commit
b314d76
·
verified ·
1 Parent(s): e02f708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ community_global_df_with_id = pd.DataFrame()
61
  community_global_df_gradio = pd.DataFrame()
62
  test_merge = pd.read_csv("https://docs.google.com/spreadsheets/d/1C8aLqgCqLYcMiIFf-P_Aosaa03C_WLIB_UyqvjSdWg8/export?format=csv&gid=0")
63
  data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
64
-
65
 
66
 
67
  @bot.event
@@ -764,7 +764,7 @@ with demo:
764
  column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
765
  dataframe2 = pd.DataFrame({'Levels': column_values_unique})
766
  counts = {}
767
- for value in test_merge.iloc[:, 3]:
768
  counts[value] = counts.get(value, 0) + 1
769
  dataframe2['Members'] = dataframe2['Levels'].map(counts)
770
 
 
61
  community_global_df_gradio = pd.DataFrame()
62
  test_merge = pd.read_csv("https://docs.google.com/spreadsheets/d/1C8aLqgCqLYcMiIFf-P_Aosaa03C_WLIB_UyqvjSdWg8/export?format=csv&gid=0")
63
  data = pd.read_csv("https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0")
64
+ data2 = pd.read_csv("https://docs.google.com/spreadsheets/d/1T_twNONDSZ8zw7aDcYhw92DlawqPktti1xFw9ssJ13Y/export?format=csv&gid=0")
65
 
66
 
67
  @bot.event
 
764
  column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
765
  dataframe2 = pd.DataFrame({'Levels': column_values_unique})
766
  counts = {}
767
+ for value in data.iloc[:, 3]:
768
  counts[value] = counts.get(value, 0) + 1
769
  dataframe2['Members'] = dataframe2['Levels'].map(counts)
770