Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ if uploaded_file:
|
|
32 |
|
33 |
# Analyze on button click
|
34 |
if st.button("Analyze Content"):
|
35 |
-
if len(text) <
|
36 |
st.warning("Not enough text to analyze!")
|
37 |
else:
|
38 |
result = detector(text[:5000]) # First 5000 chars for speed
|
|
|
32 |
|
33 |
# Analyze on button click
|
34 |
if st.button("Analyze Content"):
|
35 |
+
if len(text) < 5000:
|
36 |
st.warning("Not enough text to analyze!")
|
37 |
else:
|
38 |
result = detector(text[:5000]) # First 5000 chars for speed
|