lunarflu commited on
Commit ·
cf5c1a6
1
Parent(s): 1bbe1ac
testing removing globals
Browse files- deepfloydif.py +2 -2
deepfloydif.py
CHANGED
|
@@ -41,8 +41,8 @@ def deepfloydif_stage_2_inference(index, stage_1_result_path):
|
|
| 41 |
async def deepfloydif_stage_1(interaction, prompt, client):
|
| 42 |
"""DeepfloydIF command (generate images with realistic text using slash commands)"""
|
| 43 |
try:
|
| 44 |
-
global BOT_USER_ID
|
| 45 |
-
global DEEPFLOYDIF_CHANNEL_ID
|
| 46 |
if interaction.user.id != BOT_USER_ID:
|
| 47 |
if interaction.channel.id == DEEPFLOYDIF_CHANNEL_ID:
|
| 48 |
if os.environ.get('TEST_ENV') == 'True':
|
|
|
|
| 41 |
async def deepfloydif_stage_1(interaction, prompt, client):
|
| 42 |
"""DeepfloydIF command (generate images with realistic text using slash commands)"""
|
| 43 |
try:
|
| 44 |
+
#global BOT_USER_ID
|
| 45 |
+
#global DEEPFLOYDIF_CHANNEL_ID
|
| 46 |
if interaction.user.id != BOT_USER_ID:
|
| 47 |
if interaction.channel.id == DEEPFLOYDIF_CHANNEL_ID:
|
| 48 |
if os.environ.get('TEST_ENV') == 'True':
|