rahgadda commited on
Commit
4851e67
1 Parent(s): e001c27

Initial Draft

Browse files
Files changed (3) hide show
  1. app.py +6 -0
  2. flask_app.py +2 -0
  3. requirements.txt +8 -9
app.py CHANGED
@@ -2,10 +2,15 @@ import streamlit as st
2
 
3
  import lib.ui.statusMessage as sm
4
  import lib.ui.sidebar as sb
 
 
5
 
6
  if 'sv_flask_server_proc' not in st.session_state:
7
  st.session_state.sv_flask_server_proc = None
8
 
 
 
 
9
  # Starting Streamlit
10
  def fn_start_streamlit():
11
 
@@ -47,6 +52,7 @@ def fn_start_streamlit():
47
  sb.fn_sidebar_configuration(ui_status_message,sm)
48
 
49
  # -- Display Main Content
 
50
 
51
  # Loading Main
52
  if __name__ == "__main__":
 
2
 
3
  import lib.ui.statusMessage as sm
4
  import lib.ui.sidebar as sb
5
+ import lib.ui.main as main
6
+
7
 
8
  if 'sv_flask_server_proc' not in st.session_state:
9
  st.session_state.sv_flask_server_proc = None
10
 
11
+ if 'sv_mapping_file_name' not in st.session_state:
12
+ st.session_state.sv_mapping_file_name = None
13
+
14
  # Starting Streamlit
15
  def fn_start_streamlit():
16
 
 
52
  sb.fn_sidebar_configuration(ui_status_message,sm)
53
 
54
  # -- Display Main Content
55
+ main.fn_main_configuration(ui_status_message,sm)
56
 
57
  # Loading Main
58
  if __name__ == "__main__":
flask_app.py CHANGED
@@ -1,6 +1,8 @@
 
1
  import lib.api.registry as reg
2
 
3
  # Starting Flask Server
 
4
  def fn_start_flask_server():
5
  reg.start_rest_app()
6
 
 
1
+ import streamlit as st
2
  import lib.api.registry as reg
3
 
4
  # Starting Flask Server
5
+ @st.cache_resource
6
  def fn_start_flask_server():
7
  reg.start_rest_app()
8
 
requirements.txt CHANGED
@@ -1,10 +1,9 @@
1
- streamlit
2
- pandas
3
- numpy
4
- openpyxl
5
- sentence_transformers
6
- faiss-cpu
7
- flask
8
- Flask
9
- Flask-Cors
10
  Flask-RESTful
 
1
+ streamlit
2
+ pandas
3
+ numpy
4
+ openpyxl
5
+ sentence_transformers
6
+ faiss-cpu
7
+ Flask
8
+ Flask-Cors
 
9
  Flask-RESTful