Timothyxxx commited on
Commit
89029fd
·
1 Parent(s): 756edf5

Add quesiton re-show

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -204,6 +204,10 @@ button = st.button("Run!")
204
  if not button:
205
  st.stop()
206
 
 
 
 
 
207
  # Generate Binder Program
208
  generator = Generator(args, keys=keys)
209
  with st.spinner("Generating Binder program to solve the question...will be finished in 10s, please refresh the page if not"):
@@ -235,7 +239,7 @@ try:
235
  for i, step in enumerate(steps):
236
  col1, _, _ = st.columns([7, 1, 2])
237
  with col1:
238
- st.markdown(f'**Step#{i + 1}**')
239
  col1, col1_25, col1_5, col2, col3 = st.columns([4, 1, 2, 1, 2])
240
  with col1:
241
  st.markdown('```sql\n' + step + '\n```')
 
204
  if not button:
205
  st.stop()
206
 
207
+ # Print the question we just input.
208
+ st.subheader("Question")
209
+ st.markdown("{}".format(question))
210
+
211
  # Generate Binder Program
212
  generator = Generator(args, keys=keys)
213
  with st.spinner("Generating Binder program to solve the question...will be finished in 10s, please refresh the page if not"):
 
239
  for i, step in enumerate(steps):
240
  col1, _, _ = st.columns([7, 1, 2])
241
  with col1:
242
+ st.markdown(f'**Step #{i + 1}**')
243
  col1, col1_25, col1_5, col2, col3 = st.columns([4, 1, 2, 1, 2])
244
  with col1:
245
  st.markdown('```sql\n' + step + '\n```')