fixing hard coded reference to my gaming computer

This commit is contained in:
Luke Robles 2023-09-24 14:22:36 -07:00
parent 32c57b6be4
commit a4c8e0505e

View File

@ -41,6 +41,7 @@ class StableDiffusion(commands.Cog):
# Send my requests to my gaming computer with the 3080 (if its up) # Send my requests to my gaming computer with the 3080 (if its up)
if ctx.author.id == core_utils.my_id: if ctx.author.id == core_utils.my_id:
steps = 120 steps = 120
ip = "192.168.1.19"
if "lora" not in positive_prompt: if "lora" not in positive_prompt:
positive_prompt = ( positive_prompt = (
positive_prompt positive_prompt
@ -50,7 +51,6 @@ class StableDiffusion(commands.Cog):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(1) s.settimeout(1)
try: try:
ip = "192.168.1.19"
s.connect((ip, int(port))) s.connect((ip, int(port)))
except: except:
ip = "192.168.1.5" ip = "192.168.1.5"