EE21 commited on
Commit
7a5c42f
1 Parent(s): 8e106db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(tos_selection) - 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.")
 
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.")