AIRider commited on
Commit
b9eeb2e
·
verified ·
1 Parent(s): a9ad83b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,7 +96,7 @@ with gr.Blocks() as demo:
96
  scale=4,
97
  label="메시지 입력",
98
  lines=3,
99
- placeholder="메시지를 입력하세요. Shift+Enter로 줄바꿈, Enter로 전송"
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' && !e.shiftKey) {
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();