Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def main():
|
|
52 |
uploaded_file = st.file_uploader("Upload a PDF", type="pdf")
|
53 |
|
54 |
# Dropdown for selecting the document
|
55 |
-
tos_selection_index = st.selectbox("Select a Terms of Service Document", range(len(tos_titles)), format_func=lambda x: tos_titles[x])
|
56 |
|
57 |
if st.button("Summarize"):
|
58 |
if uploaded_file and user_input and tos_selection_index:
|
|
|
52 |
uploaded_file = st.file_uploader("Upload a PDF", type="pdf")
|
53 |
|
54 |
# Dropdown for selecting the document
|
55 |
+
tos_selection_index = st.selectbox("Select a Terms of Service Document (only for testing purposes)", range(len(tos_titles)), format_func=lambda x: tos_titles[x])
|
56 |
|
57 |
if st.button("Summarize"):
|
58 |
if uploaded_file and user_input and tos_selection_index:
|