Spaces:
Sleeping
Sleeping
fixed uploading on load
Browse files
app.py
CHANGED
@@ -21,5 +21,7 @@ prompt = st.text_input("Enter a prompt:", "batman hitting the griddy in gotham")
|
|
21 |
image_bytes = query({
|
22 |
"inputs": prompt,
|
23 |
})
|
24 |
-
|
25 |
-
|
|
|
|
|
|
21 |
image_bytes = query({
|
22 |
"inputs": prompt,
|
23 |
})
|
24 |
+
|
25 |
+
if(image_bytes):
|
26 |
+
image = Image.open(io.BytesIO(image_bytes))
|
27 |
+
st.image(image, caption="Image generated by the model", use_column_width=True)
|