shaheerawan3 commited on
Commit
d3407d9
·
verified ·
1 Parent(s): 89ab5aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1167,6 +1167,11 @@ class VideoGeneratorUI:
1167
  )
1168
 
1169
  submit_button = st.form_submit_button(label='Generate Video')
 
 
 
 
 
1170
 
1171
  if submit_button and prompt:
1172
  st.session_state.prompt = prompt
 
1167
  )
1168
 
1169
  submit_button = st.form_submit_button(label='Generate Video')
1170
+
1171
+ # Add this in the show_input_form method
1172
+ if len(prompt) > 5000: # Adjust this limit as needed
1173
+ st.error("Script is too long. Please limit to 5000 characters.")
1174
+ return
1175
 
1176
  if submit_button and prompt:
1177
  st.session_state.prompt = prompt