Spaces:
Runtime error
Runtime error
BertChristiaens
commited on
Commit
•
c882d5b
1
Parent(s):
cbc9e9a
fromarray
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def make_editing_canvas(canvas_color, brush, _reset_state, generation_mode, pain
|
|
178 |
positive_prompt=st.session_state['positive_prompt'],
|
179 |
negative_prompt=st.session_state['negative_prompt'],
|
180 |
seed=random.randint(0, 100000) # nosec
|
181 |
-
)
|
182 |
if isinstance(result_image, np.ndarray):
|
183 |
result_image = Image.fromarray(result_image)
|
184 |
st.session_state['output_image'] = result_image
|
@@ -252,7 +252,7 @@ def make_editing_canvas(canvas_color, brush, _reset_state, generation_mode, pain
|
|
252 |
with st.spinner(text="Generating new images"):
|
253 |
print("Making image")
|
254 |
result_image = make_inpainting(positive_prompt=st.session_state['positive_prompt'],
|
255 |
-
image=image,
|
256 |
mask_image=mask,
|
257 |
negative_prompt=st.session_state['negative_prompt'],
|
258 |
)[0]
|
|
|
178 |
positive_prompt=st.session_state['positive_prompt'],
|
179 |
negative_prompt=st.session_state['negative_prompt'],
|
180 |
seed=random.randint(0, 100000) # nosec
|
181 |
+
)
|
182 |
if isinstance(result_image, np.ndarray):
|
183 |
result_image = Image.fromarray(result_image)
|
184 |
st.session_state['output_image'] = result_image
|
|
|
252 |
with st.spinner(text="Generating new images"):
|
253 |
print("Making image")
|
254 |
result_image = make_inpainting(positive_prompt=st.session_state['positive_prompt'],
|
255 |
+
image=Image.fromarray(image),
|
256 |
mask_image=mask,
|
257 |
negative_prompt=st.session_state['negative_prompt'],
|
258 |
)[0]
|