Spaces:
Runtime error
Runtime error
SoSa123456
commited on
Commit
•
ba0c711
1
Parent(s):
1f03019
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def generate_script(host_name, listener_location, causes_climate_change, co2_lev
|
|
31 |
|
32 |
# Check if any section exceeds the target word count
|
33 |
for i, count in enumerate(word_counts):
|
34 |
-
|
35 |
-
|
36 |
|
37 |
return script
|
38 |
|
|
|
31 |
|
32 |
# Check if any section exceeds the target word count
|
33 |
for i, count in enumerate(word_counts):
|
34 |
+
if count > 200:
|
35 |
+
print(f"Warning: Section {i+1} exceeds the target word count. You may need to shorten this section.")
|
36 |
|
37 |
return script
|
38 |
|