update Gradio, disable paste limit
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🤖
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: gray
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: gray
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.13.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
app.py
CHANGED
@@ -458,6 +458,7 @@ with gr.Blocks(delete_cache=(86400, 86400)) as demo:
|
|
458 |
|
459 |
chat = gr.ChatInterface(fn=bot, multimodal=True, additional_inputs=controls, autofocus = False)
|
460 |
chat.textbox.file_count = "multiple"
|
|
|
461 |
chatbot = chat.chatbot
|
462 |
chatbot.show_copy_button = True
|
463 |
chatbot.height = 450
|
|
|
458 |
|
459 |
chat = gr.ChatInterface(fn=bot, multimodal=True, additional_inputs=controls, autofocus = False)
|
460 |
chat.textbox.file_count = "multiple"
|
461 |
+
chat.textbox.max_plain_text_length = 2**31
|
462 |
chatbot = chat.chatbot
|
463 |
chatbot.show_copy_button = True
|
464 |
chatbot.height = 450
|