Spaces:
Running
Running
zach
commited on
Commit
·
c8f4730
1
Parent(s):
5e4b7c8
Add UI constraint on prompt input for max character length
Browse files- src/app.py +1 -0
src/app.py
CHANGED
@@ -200,6 +200,7 @@ def build_input_section() -> Tuple[gr.Markdown, gr.Dropdown, gr.Textbox, gr.Butt
|
|
200 |
placeholder='Enter your prompt...',
|
201 |
lines=2,
|
202 |
max_lines=2,
|
|
|
203 |
show_copy_button=True,
|
204 |
)
|
205 |
generate_button = gr.Button('Generate', variant='primary')
|
|
|
200 |
placeholder='Enter your prompt...',
|
201 |
lines=2,
|
202 |
max_lines=2,
|
203 |
+
max_length=PROMPT_MAX_LENGTH,
|
204 |
show_copy_button=True,
|
205 |
)
|
206 |
generate_button = gr.Button('Generate', variant='primary')
|