Timothyxxx commited on
Commit
d6eefa9
·
1 Parent(s): 07c291b

Delete container width on db

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -245,21 +245,20 @@ try:
245
  st.markdown("on")
246
  with col1_5:
247
  if i == len(steps) - 1:
248
- st.metric(label="whole", value="Table", delta=None)
249
  else:
250
  with open("tmp_for_vis/{}_result_step_{}_input.txt".format(stamp, i), "r") as f:
251
  sub_tables_input = json.load(f)
252
  for sub_table in sub_tables_input:
253
  sub_table_to_print = remove_row_id(sub_table)
254
- st.dataframe(pd.DataFrame(sub_table_to_print['rows'], columns=sub_table_to_print['header']),
255
- use_container_width=True)
256
  with col2:
257
  st.markdown('$\\rightarrow$')
258
  if i == len(steps) - 1:
259
  # The final step
260
- st.metric(label="+", value="{}".format(selected_language), delta="Interpreter")
261
  else:
262
- st.metric(label="+", value="Codex", delta="10+ examples")
263
  with st.spinner('...'):
264
  time.sleep(1)
265
  with open("tmp_for_vis/{}_result_step_{}.txt".format(stamp, i), "r") as f:
@@ -273,7 +272,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), use_container_width=True)
277
  else:
278
  st.markdown(result_in_this_step)
279
  with st.spinner('...'):
 
245
  st.markdown("on")
246
  with col1_5:
247
  if i == len(steps) - 1:
248
+ st.metric(label="whole", value="Table", delta = None)
249
  else:
250
  with open("tmp_for_vis/{}_result_step_{}_input.txt".format(stamp, i), "r") as f:
251
  sub_tables_input = json.load(f)
252
  for sub_table in sub_tables_input:
253
  sub_table_to_print = remove_row_id(sub_table)
254
+ st.dataframe(pd.DataFrame(sub_table_to_print['rows'], columns=sub_table_to_print['header']))
 
255
  with col2:
256
  st.markdown('$\\rightarrow$')
257
  if i == len(steps) - 1:
258
  # The final step
259
+ st.metric(label="", value="{}".format(selected_language), delta="Interpreter")
260
  else:
261
+ st.metric(label="", value="Codex", delta="10+ examples")
262
  with st.spinner('...'):
263
  time.sleep(1)
264
  with open("tmp_for_vis/{}_result_step_{}.txt".format(stamp, i), "r") as f:
 
272
  for idx in range(len(header)):
273
  if header[idx].startswith('col_'):
274
  header[idx] = step
275
+ st.dataframe(pd.DataFrame(rows, columns=header))
276
  else:
277
  st.markdown(result_in_this_step)
278
  with st.spinner('...'):