Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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 =
|
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()
|