lunarflu
commited on
Commit
·
cfabc4e
1
Parent(s):
e2040bb
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,12 +40,12 @@ import glob
|
|
| 40 |
# lock generation after ~120s, can change
|
| 41 |
# restructure using slash commands? generate -> deepfloydif -> prompt -> thread -> combined -> upscale -> thread
|
| 42 |
|
| 43 |
-
|
| 44 |
-
DISCORD_TOKEN = os.environ.get("
|
| 45 |
|
| 46 |
-
df = Client("huggingface-projects/IF",
|
| 47 |
-
jojogan = Client("akhaliq/JoJoGAN",
|
| 48 |
-
falconclient = Client("HuggingFaceH4/falcon-chat",
|
| 49 |
|
| 50 |
intents = discord.Intents.default()
|
| 51 |
intents.message_content = True
|
|
|
|
| 40 |
# lock generation after ~120s, can change
|
| 41 |
# restructure using slash commands? generate -> deepfloydif -> prompt -> thread -> combined -> upscale -> thread
|
| 42 |
|
| 43 |
+
HF_TOKEN = os.getenv('HF_TOKEN')
|
| 44 |
+
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
|
| 45 |
|
| 46 |
+
df = Client("huggingface-projects/IF", HF_TOKEN)
|
| 47 |
+
jojogan = Client("akhaliq/JoJoGAN", HF_TOKEN)
|
| 48 |
+
falconclient = Client("HuggingFaceH4/falcon-chat", HF_TOKEN)
|
| 49 |
|
| 50 |
intents = discord.Intents.default()
|
| 51 |
intents.message_content = True
|