Spaces:
Build error
Build error
Adam Molnar commited on
url cleaning
Browse files
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
|
|
@@ -760,11 +760,11 @@ def get_data2():
|
|
| 760 |
demo = gr.Blocks()
|
| 761 |
with demo:
|
| 762 |
try:
|
| 763 |
-
dataframe1 = pd.read_csv(
|
| 764 |
column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
|
| 765 |
dataframe2 = pd.DataFrame({'Levels': column_values_unique})
|
| 766 |
counts = {}
|
| 767 |
-
for value in
|
| 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 |
+
|
| 65 |
|
| 66 |
|
| 67 |
@bot.event
|
|
|
|
| 760 |
demo = gr.Blocks()
|
| 761 |
with demo:
|
| 762 |
try:
|
| 763 |
+
dataframe1 = pd.read_csv(test_merge)
|
| 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 |
|