zhoujun commited on
Commit
eed742c
·
1 Parent(s): 3474cf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -252,12 +252,12 @@ try:
252
  sub_tables_input = json.load(f)
253
  for sub_table in sub_tables_input:
254
  sub_table_to_print = remove_row_id(sub_table)
255
- st.dataframe(pd.DataFrame(sub_table_to_print['rows'], columns=sub_table_to_print['header']))
256
  with col2:
257
  st.markdown('$\\rightarrow$')
258
  if i == len(steps) - 1:
259
  # The final step
260
- st.markdown("{}".format(selected_language))
261
  else:
262
  st.markdown("Codex")
263
  with st.spinner('...'):
@@ -273,7 +273,7 @@ try:
273
  for idx in range(len(header)):
274
  if header[idx].startswith('col_'):
275
  header[idx] = step
276
- st.dataframe(pd.DataFrame(rows, columns=header), width=500)
277
  # hard code here, use use_container_width after the huggingface update their streamlit version
278
  else:
279
  st.markdown(result_in_this_step)
 
252
  sub_tables_input = json.load(f)
253
  for sub_table in sub_tables_input:
254
  sub_table_to_print = remove_row_id(sub_table)
255
+ st.table(pd.DataFrame(sub_table_to_print['rows'], columns=sub_table_to_print['header']))
256
  with col2:
257
  st.markdown('$\\rightarrow$')
258
  if i == len(steps) - 1:
259
  # The final step
260
+ st.markdown("{} Interpreter".format(selected_language))
261
  else:
262
  st.markdown("Codex")
263
  with st.spinner('...'):
 
273
  for idx in range(len(header)):
274
  if header[idx].startswith('col_'):
275
  header[idx] = step
276
+ st.table(pd.DataFrame(rows, columns=header))
277
  # hard code here, use use_container_width after the huggingface update their streamlit version
278
  else:
279
  st.markdown(result_in_this_step)