Make it optional to paste long pasted content to an attachment

This commit is contained in:
oobabooga 2025-06-08 09:31:38 -07:00
parent 42e7864d62
commit 84f66484c5
4 changed files with 9 additions and 1 deletions

View file

@ -12,6 +12,7 @@ def create_ui():
gr.Markdown("## Settings")
shared.gradio['save_settings'] = gr.Button('Save settings to user_data/settings.yaml', elem_classes='refresh-button', interactive=not mu)
shared.gradio['toggle_dark_mode'] = gr.Button('Toggle light/dark theme 💡', elem_classes='refresh-button')
shared.gradio['paste_to_attachment'] = gr.Checkbox(label='Turn long pasted text into attachments in the Chat tab', value=shared.settings['paste_to_attachment'], elem_id='paste_to_attachment')
with gr.Column():
gr.Markdown("## Extensions & flags")