Spaces:
Runtime error
Runtime error
import discord | |
import os | |
import threading | |
from discord.ext import commands | |
import json | |
import datetime | |
import requests | |
import os.path | |
import random | |
import gspread | |
import re | |
import asyncio | |
import csv | |
from tabulate import tabulate | |
import logging | |
import time | |
import pandas as pd | |
from apscheduler.schedulers.background import BackgroundScheduler | |
import sys | |
import gradio_client | |
import gradio as gr | |
from gradio_client import Client | |
from huggingface_hub import HfApi, list_models, list_liked_repos, list_metrics | |
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None) | |
intents = discord.Intents.all() | |
bot = commands.Bot(command_prefix='!', intents=intents) | |
async def on_ready(): | |
print(f'Logged in as {bot.user.name}') | |
print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}") | |
# testing sheet -> read -> paste sheet | |
"""""" | |
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None) | |
def run_bot(): | |
bot.run(DISCORD_TOKEN) | |
threading.Thread(target=run_bot).start() | |
demo = gr.Blocks() | |
with demo: | |
TITLE = """<h1 align="center" id="space-title">🤗 Hugging Face Level Leaderboard</h1>""" | |
gr.HTML(TITLE) | |
demo.queue().launch() | |