Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ with gr.Blocks() as demo:
|
|
96 |
scale=4,
|
97 |
label="메시지 입력",
|
98 |
lines=3,
|
99 |
-
placeholder="메시지를 입력하세요.
|
100 |
)
|
101 |
|
102 |
with gr.Row():
|
@@ -125,7 +125,7 @@ with gr.Blocks() as demo:
|
|
125 |
if (!textbox) return x;
|
126 |
|
127 |
textbox.addEventListener("keydown", function(e) {
|
128 |
-
if (e.key === 'Enter' &&
|
129 |
e.preventDefault();
|
130 |
const sendButton = document.getElementById('component-5');
|
131 |
if (sendButton) sendButton.click();
|
|
|
96 |
scale=4,
|
97 |
label="메시지 입력",
|
98 |
lines=3,
|
99 |
+
placeholder="메시지를 입력하세요. Enter로 줄바꿈, Shift+Enter로 전송"
|
100 |
)
|
101 |
|
102 |
with gr.Row():
|
|
|
125 |
if (!textbox) return x;
|
126 |
|
127 |
textbox.addEventListener("keydown", function(e) {
|
128 |
+
if (e.key === 'Enter' && e.shiftKey) {
|
129 |
e.preventDefault();
|
130 |
const sendButton = document.getElementById('component-5');
|
131 |
if (sendButton) sendButton.click();
|