EE21 commited on
Commit
1a0e07b
1 Parent(s): 2115e8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def main():
30
  st.title("Terms of Service Summarizer")
31
 
32
  # Layout: 3 columns
33
- col1, col2, col3 = st.columns([1, 2, 3], gap="large")
34
 
35
  # Left column: Radio buttons for summarizer choice
36
  with col1:
@@ -119,7 +119,7 @@ def main():
119
  # Check if a reference summary is available
120
  if tos_selection_index is not None and 'summary' in dataset['train'][tos_selection_index]:
121
  # Fetch the reference summary
122
- reference_summary = data['train'][tos_selection_index]['summary']
123
 
124
  # Calculate ROUGE scores
125
  rouge = Rouge()
 
30
  st.title("Terms of Service Summarizer")
31
 
32
  # Layout: 3 columns
33
+ col1, col2, col3 = st.columns([1, 3, 2], gap="large")
34
 
35
  # Left column: Radio buttons for summarizer choice
36
  with col1:
 
119
  # Check if a reference summary is available
120
  if tos_selection_index is not None and 'summary' in dataset['train'][tos_selection_index]:
121
  # Fetch the reference summary
122
+ reference_summary = dataset['train'][tos_selection_index]['summary']
123
 
124
  # Calculate ROUGE scores
125
  rouge = Rouge()