multimodalart HF staff commited on
Commit
542d571
1 Parent(s): 548116b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -23,8 +23,10 @@ def infer(prompt, negative, scale):
23
 
24
  images = []
25
  url = os.getenv('JAX_BACKEND_URL')
 
26
  payload = {'prompt': prompt, 'negative_prompt': negative, 'guidance_scale': scale}
27
  images_request = requests.post(url, json = payload)
 
28
  for image in images_request.json()["images"]:
29
  image_b64 = (f"data:image/jpeg;base64,{image}")
30
  images.append(image_b64)
 
23
 
24
  images = []
25
  url = os.getenv('JAX_BACKEND_URL')
26
+ print(url)
27
  payload = {'prompt': prompt, 'negative_prompt': negative, 'guidance_scale': scale}
28
  images_request = requests.post(url, json = payload)
29
+ print(images_request)
30
  for image in images_request.json()["images"]:
31
  image_b64 = (f"data:image/jpeg;base64,{image}")
32
  images.append(image_b64)