lunarflu HF staff commited on
Commit
1dc1037
β€’
1 Parent(s): e994942

testing for gradio

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -337,10 +337,12 @@ async def remove_huggingfolks():
337
 
338
  print(community_global_df)
339
 
 
340
  community_global_df['discord_exp'] = pd.to_numeric(community_global_df['discord_exp'])
 
 
341
  top_30_exp = community_global_df.nlargest(30, 'discord_exp')
342
- top_30_exp.drop(top_30_exp.columns[0], axis=1, inplace=True)
343
- community_global_df = top_30_exp.copy() # for gradio
344
 
345
  top_30_exp['D'] = ['πŸ₯‡','πŸ₯ˆ','πŸ₯‰','','','','','','','','','','','','','','','','','','','','','','','','','','','']
346
  top_30_rows = top_30_exp.values.tolist()
 
337
 
338
  print(community_global_df)
339
 
340
+ community_global_df.drop(community_global_df.columns[0], axis=1, inplace=True)
341
  community_global_df['discord_exp'] = pd.to_numeric(community_global_df['discord_exp'])
342
+ community_global_df = community_global_df.nlargest(len(community_global_df), 'discord_exp')
343
+
344
  top_30_exp = community_global_df.nlargest(30, 'discord_exp')
345
+ #community_global_df = top_30_exp.copy() # for gradio
 
346
 
347
  top_30_exp['D'] = ['πŸ₯‡','πŸ₯ˆ','πŸ₯‰','','','','','','','','','','','','','','','','','','','','','','','','','','','']
348
  top_30_rows = top_30_exp.values.tolist()