lunarflu HF Staff commited on
Commit
069699b
·
1 Parent(s): 3577241

TESTING EARLIER VERSION

Browse files
Files changed (1) hide show
  1. app.py +23 -13
app.py CHANGED
@@ -1,17 +1,27 @@
 
1
  import discord
2
- from discord import app_commands #needed
3
- import gradio_client
 
 
4
  import gradio as gr
5
- from gradio_client import Client #needed
6
- import os #needed
7
- import threading #needed
8
- import json #needed
9
- import random #dfif
10
- from PIL import Image #dfif
11
- import asyncio #dfif
12
- import glob #needed, dfif
13
-
 
 
 
 
14
  #-------------------------------------------------------------------------------------------------------------------------------------
 
 
 
15
 
16
 
17
  MY_GUILD = discord.Object(id=1077674588122648679) # HF = 879548962464493619, test = 1077674588122648679
@@ -57,8 +67,8 @@ class MyClient(discord.Client):
57
  self.tree.copy_global_to(guild=MY_GUILD)
58
  await self.tree.sync(guild=MY_GUILD)
59
 
60
- #intents = discord.Intents.all()
61
- client = MyClient(intents=discord.Intents.default())
62
  #-------------------------------------------------------------------------------------------------------------------------------------
63
  @client.event
64
  async def on_ready():
 
1
+ #from typing import Optional
2
  import discord
3
+ from discord import app_commands
4
+ from discord.ext import commands
5
+ #from discord import Embed, Color
6
+ import gradio_client
7
  import gradio as gr
8
+ from gradio_client import Client
9
+ import os #
10
+ import threading
11
+ import requests
12
+ import json
13
+ import random
14
+ import time
15
+ #import re
16
+ from PIL import Image
17
+ import asyncio
18
+ #import concurrent.futures
19
+ #import multiprocessing
20
+ import glob
21
  #-------------------------------------------------------------------------------------------------------------------------------------
22
+ # PR checklist
23
+ # HF guild id for MY_GUILD
24
+ # HF_TOKEN, DISCORD_TOKEN verification
25
 
26
 
27
  MY_GUILD = discord.Object(id=1077674588122648679) # HF = 879548962464493619, test = 1077674588122648679
 
67
  self.tree.copy_global_to(guild=MY_GUILD)
68
  await self.tree.sync(guild=MY_GUILD)
69
 
70
+ intents = discord.Intents.all()
71
+ client = MyClient(intents=intents)
72
  #-------------------------------------------------------------------------------------------------------------------------------------
73
  @client.event
74
  async def on_ready():