nostalgebraist commited on
Commit
5bac5ef
·
1 Parent(s): a54a213
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -67,16 +67,14 @@ def handler(text, ts1, ts2, gs1):
67
  pipeline.base_model.set_timestep_respacing(str(ts1))
68
  pipeline.super_res_model.set_timestep_respacing(str(ts2))
69
 
70
- gen = pipeline.sample(**args)
71
 
72
- for sample, pred_xstart in
73
-
74
- return result
75
 
76
  text = st.text_area('asdf')
77
 
78
  if st.button('rweerew'):
79
- handler(text, 20, 20, 0)
 
80
 
81
  # x = st.slider('Select a value')
82
  # st.write(x, 'squared is', x * x)
 
67
  pipeline.base_model.set_timestep_respacing(str(ts1))
68
  pipeline.super_res_model.set_timestep_respacing(str(ts2))
69
 
70
+ return pipeline.sample(**args)
71
 
 
 
 
72
 
73
  text = st.text_area('asdf')
74
 
75
  if st.button('rweerew'):
76
+ for s, xs in handler(text, 20, 20, 0):
77
+ pass
78
 
79
  # x = st.slider('Select a value')
80
  # st.write(x, 'squared is', x * x)