Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def main():
|
|
65 |
elif user_input:
|
66 |
file_content = user_input
|
67 |
elif tos_selection_index != "None":
|
68 |
-
tos_selection_index = tos_titles.index(
|
69 |
file_content = dataset['train'][tos_selection_index]['plain_text']
|
70 |
else:
|
71 |
st.warning("Please upload a PDF, enter some text, or select a document to summarize.")
|
|
|
65 |
elif user_input:
|
66 |
file_content = user_input
|
67 |
elif tos_selection_index != "None":
|
68 |
+
tos_selection_index = tos_titles.index(tos_titles) - 1 # Adjust for the added 'None' option
|
69 |
file_content = dataset['train'][tos_selection_index]['plain_text']
|
70 |
else:
|
71 |
st.warning("Please upload a PDF, enter some text, or select a document to summarize.")
|