leavoigt commited on
Commit
27a4df7
1 Parent(s): 32a1b64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,9 +17,9 @@ references to vulnerable groups, for example when talking about policy documents
17
  uploaded_file = st.file_uploader(label, type=None, accept_multiple_files=False, key=None, help=None, on_change=None, args=None, kwargs=None, *, disabled=False, label_visibility="visible")
18
 
19
  # Create text input box
20
- input_text = st.text_area(label='Please enter your text here', value="This policy has been implemented to support women.")
21
 
22
- st.write('Prediction:', model(input_text))
23
 
24
  ######################################### Model #########################################################
25
 
@@ -45,7 +45,7 @@ id2label = {
45
  14: 'Women'}
46
 
47
  # Import the file_processing function
48
- from file_processing.py import process_documents
49
 
50
  # Process document to paragraphs
51
  par_list = process_documents(uploaded_file)
 
17
  uploaded_file = st.file_uploader(label, type=None, accept_multiple_files=False, key=None, help=None, on_change=None, args=None, kwargs=None, *, disabled=False, label_visibility="visible")
18
 
19
  # Create text input box
20
+ #input_text = st.text_area(label='Please enter your text here', value="This policy has been implemented to support women.")
21
 
22
+ #st.write('Prediction:', model(input_text))
23
 
24
  ######################################### Model #########################################################
25
 
 
45
  14: 'Women'}
46
 
47
  # Import the file_processing function
48
+ from file_processing.py import get_paragraphs
49
 
50
  # Process document to paragraphs
51
  par_list = process_documents(uploaded_file)