lunarflu HF staff commited on
Commit
22d3c95
1 Parent(s): c797e03
Files changed (1) hide show
  1. app.py +6 -15
app.py CHANGED
@@ -74,13 +74,6 @@ async def update_google_sheet():
74
  set_with_dataframe(worksheet, global_df)
75
  print({f"Google sheet {name} successfully updated!"})
76
 
77
- """
78
- scheduler = BackgroundScheduler()
79
- scheduler.add_job(update_google_sheet, "interval", seconds=60)
80
- scheduler.start()
81
-
82
- """
83
-
84
 
85
  def calculate_level(xp):
86
  return int(xp ** (1.0 / 3.0))
@@ -199,17 +192,15 @@ async def on_message(message):
199
  print(f"on_message Error: {e}")
200
 
201
 
202
-
203
-
204
  """"""
 
 
 
 
 
205
  DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
206
  def run_bot():
207
  bot.run(DISCORD_TOKEN)
208
  threading.Thread(target=run_bot).start()
209
 
210
-
211
-
212
- demo = gr.Blocks()
213
- with demo:
214
- gr.HTML(TITLE)
215
- demo.queue().launch()
 
74
  set_with_dataframe(worksheet, global_df)
75
  print({f"Google sheet {name} successfully updated!"})
76
 
 
 
 
 
 
 
 
77
 
78
  def calculate_level(xp):
79
  return int(xp ** (1.0 / 3.0))
 
192
  print(f"on_message Error: {e}")
193
 
194
 
 
 
195
  """"""
196
+ demo = gr.Blocks()
197
+ with demo:
198
+ gr.HTML("a")
199
+ demo.queue().launch()
200
+
201
  DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
202
  def run_bot():
203
  bot.run(DISCORD_TOKEN)
204
  threading.Thread(target=run_bot).start()
205
 
206
+