Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
|
|
86 |
}
|
87 |
|
88 |
#image_bytes = requests.post(API_URL, headers=headers, json=payload).content
|
89 |
-
image =
|
90 |
return image
|
91 |
'''
|
92 |
image = Image.open(io.BytesIO(image_bytes))
|
|
|
86 |
}
|
87 |
|
88 |
#image_bytes = requests.post(API_URL, headers=headers, json=payload).content
|
89 |
+
image = api(data = payload)
|
90 |
return image
|
91 |
'''
|
92 |
image = Image.open(io.BytesIO(image_bytes))
|