Spaces:
Runtime error
Runtime error
fracapuano
commited on
Commit
·
4ba1608
1
Parent(s):
31eab61
fix: text is given when input fixed in a good way now
Browse files
summarization/summarization.py
CHANGED
|
@@ -48,7 +48,8 @@ def summarization_main():
|
|
| 48 |
max_chars=10_000,
|
| 49 |
height=330)
|
| 50 |
# toggle text is given greenlight
|
| 51 |
-
|
|
|
|
| 52 |
|
| 53 |
elif option == OPTION_2:
|
| 54 |
uploaded_file = st.file_uploader(
|
|
|
|
| 48 |
max_chars=10_000,
|
| 49 |
height=330)
|
| 50 |
# toggle text is given greenlight
|
| 51 |
+
if text != sample_text:
|
| 52 |
+
text_is_given = not text_is_given
|
| 53 |
|
| 54 |
elif option == OPTION_2:
|
| 55 |
uploaded_file = st.file_uploader(
|