Spaces:
Build error
Build error
PatrickSchrML
commited on
Commit
•
2e69d22
1
Parent(s):
16217a1
fix
Browse files
app.py
CHANGED
@@ -40,8 +40,10 @@ def infer(prompt, n_samples, steps, scale, seed):
|
|
40 |
# images.append(image)
|
41 |
# else:
|
42 |
url = os.getenv('BACKEND_URL')
|
43 |
-
response = requests.get(url.format(
|
|
|
44 |
data = json.load(BytesIO(response.content))
|
|
|
45 |
for image in data['output']['choices']:
|
46 |
image_b64 = (f"data:image/jpeg;base64,{image['image_base64']}")
|
47 |
images.append(image_b64)
|
|
|
40 |
# images.append(image)
|
41 |
# else:
|
42 |
url = os.getenv('BACKEND_URL')
|
43 |
+
response = requests.get(url.format('a naked girl', 2, 50, 7.5, 2))
|
44 |
+
print(response)
|
45 |
data = json.load(BytesIO(response.content))
|
46 |
+
print(data)
|
47 |
for image in data['output']['choices']:
|
48 |
image_b64 = (f"data:image/jpeg;base64,{image['image_base64']}")
|
49 |
images.append(image_b64)
|