nostalgebraist commited on
Commit
b43ef12
·
1 Parent(s): b95a9fa
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -85,12 +85,12 @@ if st.button('rweerew'):
85
 
86
  for s, xs in handler(text, 20, 20, 0):
87
  print((type(s), s.shape))
88
- print((type(xs), xs.shape))
89
- # s = Image.fromarray(s)
90
- # xs = Image.fromarray(xs)
91
- # target = low_res if s.size[0] < 256 else high_res
92
- # with target.container():
93
- # st.write([s, xs])
94
 
95
  # x = st.slider('Select a value')
96
  # st.write(x, 'squared is', x * x)
 
85
 
86
  for s, xs in handler(text, 20, 20, 0):
87
  print((type(s), s.shape))
88
+ print((type(xs), s.shape))
89
+ s = Image.fromarray(s[0])
90
+ xs = Image.fromarray(xs[0])
91
+ target = low_res if s.size[0] < 256 else high_res
92
+ with target.container():
93
+ st.write([s, xs])
94
 
95
  # x = st.slider('Select a value')
96
  # st.write(x, 'squared is', x * x)