philschmid HF staff commited on
Commit
63fd712
1 Parent(s): 34cddc4
Files changed (2) hide show
  1. app.py +4 -4
  2. share_btn.py +1 -1
app.py CHANGED
@@ -24,10 +24,10 @@ endpoint_name = os.environ.get(
24
  )
25
 
26
  if (
27
- aws_access_key_id is not None
28
- and aws_secret_access_key is not None
29
- and region is not None
30
- and endpoint_name is not None
31
  ):
32
  raise Exception(
33
  "Please set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION and SAGEMAKER_ENDPOINT_NAME environment variables"
 
24
  )
25
 
26
  if (
27
+ aws_access_key_id is None
28
+ or aws_secret_access_key is None
29
+ or region is None
30
+ or endpoint_name is None
31
  ):
32
  raise Exception(
33
  "Please set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION and SAGEMAKER_ENDPOINT_NAME environment variables"
share_btn.py CHANGED
@@ -53,7 +53,7 @@ ${htmlImgs.join(`\n`)}
53
  description: descriptionMd,
54
  });
55
  const paramsStr = params.toString();
56
- window.open(`https://huggingface.co/spaces/pcuenq/sdxl/discussions/new?${paramsStr}`, '_blank');
57
  shareBtnEl.style.removeProperty('pointer-events');
58
  shareIconEl.style.removeProperty('display');
59
  loadingIconEl.style.display = 'none';
 
53
  description: descriptionMd,
54
  });
55
  const paramsStr = params.toString();
56
+ window.open(`https://huggingface.co/spaces/aws-neuron/stable-diffusion-xl-on-inf2/discussions/new?${paramsStr}`, '_blank');
57
  shareBtnEl.style.removeProperty('pointer-events');
58
  shareIconEl.style.removeProperty('display');
59
  loadingIconEl.style.display = 'none';