Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,15 +89,15 @@ def main():
|
|
89 |
type="default",
|
90 |
placeholder="Project Name",
|
91 |
)
|
92 |
-
|
93 |
-
"Document", type=["pdf", "txt", "docx"], accept_multiple_files=
|
94 |
)
|
95 |
|
96 |
submitted = st.form_submit_button("Process Data")
|
97 |
|
98 |
if submitted:
|
99 |
-
if project_name and
|
100 |
-
function.process_rfp_data(project_name,
|
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",
|