devve1 commited on
Commit
6573921
1 Parent(s): 1de54b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -9,7 +9,6 @@ import spacy
9
  import base64
10
  import asyncio
11
  import msgpack
12
- import sqlite3
13
  import outlines
14
  import validators
15
  import numpy as np
@@ -24,7 +23,6 @@ from dense_embed import embed_text
24
  from ppt_chunker import ppt_chunker
25
  from outlines import models, generate
26
  from qdrant_client import QdrantClient
27
- from unstructured.cleaners.core import clean
28
  from streamlit_navigation_bar import st_navbar
29
  from vllm.sampling_params import SamplingParams
30
  from fastembed import SparseTextEmbedding, SparseEmbedding
@@ -698,12 +696,6 @@ if __name__ == '__main__':
698
  required=True,
699
  disabled=True
700
  ),
701
- "toggle": st.column_config.CheckboxColumn(
702
- 'Enable/Disable',
703
- help='Either to enable or disable the ability for the ai to find this document',
704
- required=True,
705
- default=True
706
- ),
707
  "exact_search": st.column_config.CheckboxColumn(
708
  'Exact Search',
709
  help='Wether the Exact Search is available for this document or not',
@@ -858,7 +850,6 @@ if __name__ == '__main__':
858
  'type': icon_to_types[file_type][1],
859
  'path': full_path,
860
  'time': [datetime.strptime(processing_time, '%d %b %Y, %I:%M %p')],
861
- 'toggle': True,
862
  'exact_search': False
863
  }
864
 
@@ -872,7 +863,6 @@ if __name__ == '__main__':
872
  'type': icon_to_types[file_type][1],
873
  'path': full_path,
874
  'time': [datetime.strptime(processing_time, '%d %b %Y, %I:%M %p')],
875
- 'toggle': True,
876
  'exact_search': False
877
  })
878
  ],
@@ -886,7 +876,6 @@ if __name__ == '__main__':
886
  'type': icon_to_types[file_type][1],
887
  'path': full_path,
888
  'time': datetime.strptime(processing_time, '%d %b %Y, %I:%M %p'),
889
- 'toggle': True,
890
  'exact_search': False
891
  }
892
 
 
9
  import base64
10
  import asyncio
11
  import msgpack
 
12
  import outlines
13
  import validators
14
  import numpy as np
 
23
  from ppt_chunker import ppt_chunker
24
  from outlines import models, generate
25
  from qdrant_client import QdrantClient
 
26
  from streamlit_navigation_bar import st_navbar
27
  from vllm.sampling_params import SamplingParams
28
  from fastembed import SparseTextEmbedding, SparseEmbedding
 
696
  required=True,
697
  disabled=True
698
  ),
 
 
 
 
 
 
699
  "exact_search": st.column_config.CheckboxColumn(
700
  'Exact Search',
701
  help='Wether the Exact Search is available for this document or not',
 
850
  'type': icon_to_types[file_type][1],
851
  'path': full_path,
852
  'time': [datetime.strptime(processing_time, '%d %b %Y, %I:%M %p')],
 
853
  'exact_search': False
854
  }
855
 
 
863
  'type': icon_to_types[file_type][1],
864
  'path': full_path,
865
  'time': [datetime.strptime(processing_time, '%d %b %Y, %I:%M %p')],
 
866
  'exact_search': False
867
  })
868
  ],
 
876
  'type': icon_to_types[file_type][1],
877
  'path': full_path,
878
  'time': datetime.strptime(processing_time, '%d %b %Y, %I:%M %p'),
 
879
  'exact_search': False
880
  }
881