lunarflu HF staff commited on
Commit
71989fb
·
verified ·
1 Parent(s): 342106b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -710,7 +710,8 @@ def get_data2():
710
  demo = gr.Blocks()
711
  with demo:
712
  try:
713
- dataframe1 = global_df.copy()
 
714
  print(dataframe1)
715
  column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
716
  print(column_values_unique)
@@ -718,7 +719,7 @@ with demo:
718
  print(dataframe2)
719
  counts = {}
720
  try:
721
- for value in data.iloc[:, 3]:
722
  print(value)
723
  print(type(value))
724
  counts[value] = counts.get(value, 0) + 1
 
710
  demo = gr.Blocks()
711
  with demo:
712
  try:
713
+ dataframe1 = pd.read_csv("https://docs.google.com/spreadsheets/d/1C8aLqgCqLYcMiIFf-P_Aosaa03C_WLIB_UyqvjSdWg8/export?format=csv&gid=0")
714
+ #data = dataframe1.copy()
715
  print(dataframe1)
716
  column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
717
  print(column_values_unique)
 
719
  print(dataframe2)
720
  counts = {}
721
  try:
722
+ for value in dataframe1.iloc[:, 3]:
723
  print(value)
724
  print(type(value))
725
  counts[value] = counts.get(value, 0) + 1