ethanrom commited on
Commit
fc7d98a
·
1 Parent(s): 1463e34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -1,13 +1,12 @@
1
  import streamlit as st
2
  import tensorflow as tf
3
  from button_click_alt import find_order_id
4
- import pandas as pd
5
 
6
  def main():
7
  st.set_page_config(page_title='Order ID Finder', layout='wide')
8
  st.title('OCR + Font type demo')
9
 
10
- tabs = st.tabs(["Intro", "find order", "View List"])
11
 
12
  with tabs[0]:
13
  col1, col2 = st.columns([1, 2])
@@ -54,14 +53,5 @@ def main():
54
  elif result['status'] == 'warning':
55
  st.warning(result['message'])
56
 
57
- with tabs[2]:
58
- st.write('## Preview of Records')
59
- st.write('This is the list of orders')
60
- if input_file:
61
- df = pd.read_csv(input_file, header=None, names=['Order ID', 'Name', 'Font'])
62
- st.write(df)
63
- else:
64
- st.warning('Please upload an input file first.')
65
-
66
  if __name__ == '__main__':
67
  main()
 
1
  import streamlit as st
2
  import tensorflow as tf
3
  from button_click_alt import find_order_id
 
4
 
5
  def main():
6
  st.set_page_config(page_title='Order ID Finder', layout='wide')
7
  st.title('OCR + Font type demo')
8
 
9
+ tabs = st.tabs(["Intro", "find order"])
10
 
11
  with tabs[0]:
12
  col1, col2 = st.columns([1, 2])
 
53
  elif result['status'] == 'warning':
54
  st.warning(result['message'])
55
 
 
 
 
 
 
 
 
 
 
56
  if __name__ == '__main__':
57
  main()