Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,9 @@ def infer(prompt, negative, scale):
|
|
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.text)
|
30 |
for image in images_request.json()["images"]:
|
|
|
|
|
31 |
image_b64 = (f"data:image/jpeg;base64,{image}")
|
32 |
images.append(image_b64)
|
33 |
|
|
|
26 |
print(url)
|
27 |
payload = {'prompt': prompt, 'negative_prompt': negative, 'guidance_scale': scale}
|
28 |
images_request = requests.post(url, json = payload)
|
|
|
29 |
for image in images_request.json()["images"]:
|
30 |
+
print("Loading inside")
|
31 |
+
print(image)
|
32 |
image_b64 = (f"data:image/jpeg;base64,{image}")
|
33 |
images.append(image_b64)
|
34 |
|