laverdes commited on
Commit
274b32c
·
1 Parent(s): 4b73e05

chore: st.text for st.write for outputs

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -97,9 +97,9 @@ if information == 'Extract all!':
97
  parsed_receipt_info_a = run_prediction(image)
98
  pretrained_model, processor, task_prompt = pretrained_model_b, processor_b, f"<s_cord-v2>"
99
  parsed_receipt_info_b = run_prediction(image)
100
- st.text(f'\nRaw output a:\n{parsed_receipt_info_a}')
101
- st.text(f'\nRaw output b:\n{parsed_receipt_info_b}')
102
  else:
103
  st.text(f'parsing 🧾...')
104
  parsed_receipt_info = run_prediction(image)
105
- st.text(f'\nRaw output:\n{parsed_receipt_info}')
 
97
  parsed_receipt_info_a = run_prediction(image)
98
  pretrained_model, processor, task_prompt = pretrained_model_b, processor_b, f"<s_cord-v2>"
99
  parsed_receipt_info_b = run_prediction(image)
100
+ st.write(f'\nRaw output a:\n{parsed_receipt_info_a}')
101
+ st.write(f'\nRaw output b:\n{parsed_receipt_info_b}')
102
  else:
103
  st.text(f'parsing 🧾...')
104
  parsed_receipt_info = run_prediction(image)
105
+ st.write(f'\nRaw output:\n{parsed_receipt_info}')