itacaiunas commited on
Commit
f6d651a
·
1 Parent(s): dbad460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -110,10 +110,8 @@ if uploaded_file is not None:
110
 
111
  with st.spinner("A IA está fazendo a mágica!"):
112
  output = process_inpaint(np.array(img_input), np.array(im)) #TODO Put button here
113
- #img_output = Image.fromarray(output).convert("RGB")
114
- img_input = Image.open(BytesIO(bytes_data))
115
- if img_input.mode != "RGBA":
116
- img_input = img_input.convert("RGBA")
117
 
118
 
119
  st.write("AI terminou o trabalho!")
 
110
 
111
  with st.spinner("A IA está fazendo a mágica!"):
112
  output = process_inpaint(np.array(img_input), np.array(im)) #TODO Put button here
113
+ img_output = Image.fromarray(output).convert("RGB")
114
+
 
 
115
 
116
 
117
  st.write("AI terminou o trabalho!")