0.3 update
Browse files
app.py
CHANGED
@@ -30,10 +30,6 @@ jojogan = gradio_client.Client("akhaliq/JoJoGAN")
|
|
30 |
#token update
|
31 |
DFIF_TOKEN = os.getenv('DFIF_TOKEN')
|
32 |
hf_token = DFIF_TOKEN # could clean this up
|
33 |
-
#deepfloydif
|
34 |
-
#df = Client("DeepFloyd/IF") #not reliable at the moment
|
35 |
-
#df = Client("huggingface-projects/IF", hf_token=DFIF_TOKEN) # testing replace with new async client
|
36 |
-
df = AsyncGradioClient("huggingface-projects/IF", hf_token=DFIF_TOKEN)
|
37 |
|
38 |
#----------------------------------------------------------------------------------------------------
|
39 |
class AsyncGradioClient(gradio_client.Client):
|
@@ -55,6 +51,13 @@ class AsyncGradioClient(gradio_client.Client):
|
|
55 |
return response_json["output"]
|
56 |
#----------------------------------------------------------------------------------------------------
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
# Set up discord bot
|
59 |
class MyClient(discord.Client):
|
60 |
async def on_ready(self):
|
|
|
30 |
#token update
|
31 |
DFIF_TOKEN = os.getenv('DFIF_TOKEN')
|
32 |
hf_token = DFIF_TOKEN # could clean this up
|
|
|
|
|
|
|
|
|
33 |
|
34 |
#----------------------------------------------------------------------------------------------------
|
35 |
class AsyncGradioClient(gradio_client.Client):
|
|
|
51 |
return response_json["output"]
|
52 |
#----------------------------------------------------------------------------------------------------
|
53 |
|
54 |
+
#deepfloydif
|
55 |
+
#df = Client("DeepFloyd/IF") #not reliable at the moment
|
56 |
+
#df = Client("huggingface-projects/IF", hf_token=DFIF_TOKEN) # testing replace with new async client
|
57 |
+
df = AsyncGradioClient("huggingface-projects/IF", hf_token=DFIF_TOKEN)
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
# Set up discord bot
|
62 |
class MyClient(discord.Client):
|
63 |
async def on_ready(self):
|