Darpan07 commited on
Commit
58acb8e
1 Parent(s): 7ef133a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -89,15 +89,15 @@ def main():
89
  type="default",
90
  placeholder="Project Name",
91
  )
92
- file = st.file_uploader(
93
- "Document", type=["pdf", "txt", "docx"], accept_multiple_files=False
94
  )
95
 
96
  submitted = st.form_submit_button("Process Data")
97
 
98
  if submitted:
99
- if project_name and file:
100
- function.process_rfp_data(project_name, file)
101
  else:
102
  st.warning(
103
  "project_name and file are required to create create stories",
 
89
  type="default",
90
  placeholder="Project Name",
91
  )
92
+ files = st.file_uploader(
93
+ "Document", type=["pdf", "txt", "docx"], accept_multiple_files=True
94
  )
95
 
96
  submitted = st.form_submit_button("Process Data")
97
 
98
  if submitted:
99
+ if project_name and files:
100
+ function.process_rfp_data(project_name, files)
101
  else:
102
  st.warning(
103
  "project_name and file are required to create create stories",