Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -733,9 +733,9 @@ def run_bot():
|
|
733 |
bot.run(DISCORD_TOKEN)
|
734 |
threading.Thread(target=run_bot).start()
|
735 |
|
736 |
-
|
737 |
-
URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
738 |
-
csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
739 |
|
740 |
|
741 |
def get_data():
|
@@ -760,7 +760,7 @@ 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 = {}
|
|
|
733 |
bot.run(DISCORD_TOKEN)
|
734 |
threading.Thread(target=run_bot).start()
|
735 |
|
736 |
+
URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/export?format=csv&gid=0"
|
737 |
+
#URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
738 |
+
#csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
739 |
|
740 |
|
741 |
def get_data():
|
|
|
760 |
demo = gr.Blocks()
|
761 |
with demo:
|
762 |
try:
|
763 |
+
dataframe1 = pd.read_csv(URL)
|
764 |
column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
|
765 |
dataframe2 = pd.DataFrame({'Levels': column_values_unique})
|
766 |
counts = {}
|