cutechicken commited on
Commit
3cfd908
โ€ข
1 Parent(s): b03b509

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -431,19 +431,19 @@ with gr.Blocks(css=CSS) as demo:
431
  file_upload = gr.File(
432
  label="๐Ÿ“Ž ํŒŒ์ผ ์ฒจ๋ถ€",
433
  type="filepath",
434
- scale=0.15,
435
  min_width=50,
436
  elem_classes="file-upload-button"
437
  )
438
  msg = gr.Textbox(
439
  show_label=False,
440
  placeholder="๋ฉ”์‹œ์ง€๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”... ๐Ÿ’ญ",
441
- scale=0.7,
442
  container=False
443
  )
444
  send = gr.Button(
445
  "์ „์†ก",
446
- scale=0.15,
447
  min_width=50,
448
  elem_classes="custom-button"
449
  )
@@ -478,6 +478,7 @@ with gr.Blocks(css=CSS) as demo:
478
  elem_classes="slider"
479
  )
480
 
 
481
  gr.Examples(
482
  examples=[
483
  ["ํ•œ๊ตญ์˜ ์ „ํ†ต ์ ˆ๊ธฐ์™€ 24์ ˆ๊ธฐ์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."],
@@ -486,11 +487,10 @@ with gr.Blocks(css=CSS) as demo:
486
  ["์‚ฌ๋ฌผ๋†€์ด์˜ ์•…๊ธฐ ๊ตฌ์„ฑ๊ณผ ์žฅ๋‹จ์— ๋Œ€ํ•ด ์ดˆ๋ณด์ž๋„ ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๊ฒŒ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."],
487
  ["ํ•œ๊ตญ์˜ ์ „ํ†ต ๊ฑด์ถ•๋ฌผ์— ๋‹ด๊ธด ๊ณผํ•™์  ์›๋ฆฌ๋ฅผ ํ˜„๋Œ€์  ๊ด€์ ์—์„œ ๋ถ„์„ํ•ด์ฃผ์„ธ์š”."],
488
  ],
489
- inputs=msg,
490
- elem_classes="examples-panel"
491
  )
492
 
493
- # ์ด๋ฒคํŠธ ๋ฐ”์ธ๋”ฉ
494
  msg.submit(
495
  stream_chat,
496
  inputs=[msg, chatbot, file_upload, temperature, max_new_tokens, top_p, top_k, penalty],
 
431
  file_upload = gr.File(
432
  label="๐Ÿ“Ž ํŒŒ์ผ ์ฒจ๋ถ€",
433
  type="filepath",
434
+ scale=1, # ์ •์ˆ˜๊ฐ’์œผ๋กœ ์ˆ˜์ •
435
  min_width=50,
436
  elem_classes="file-upload-button"
437
  )
438
  msg = gr.Textbox(
439
  show_label=False,
440
  placeholder="๋ฉ”์‹œ์ง€๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”... ๐Ÿ’ญ",
441
+ scale=4, # ์ •์ˆ˜๊ฐ’์œผ๋กœ ์ˆ˜์ •
442
  container=False
443
  )
444
  send = gr.Button(
445
  "์ „์†ก",
446
+ scale=1, # ์ •์ˆ˜๊ฐ’์œผ๋กœ ์ˆ˜์ •
447
  min_width=50,
448
  elem_classes="custom-button"
449
  )
 
478
  elem_classes="slider"
479
  )
480
 
481
+ # Examples ์ปดํฌ๋„ŒํŠธ ์ˆ˜์ •
482
  gr.Examples(
483
  examples=[
484
  ["ํ•œ๊ตญ์˜ ์ „ํ†ต ์ ˆ๊ธฐ์™€ 24์ ˆ๊ธฐ์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."],
 
487
  ["์‚ฌ๋ฌผ๋†€์ด์˜ ์•…๊ธฐ ๊ตฌ์„ฑ๊ณผ ์žฅ๋‹จ์— ๋Œ€ํ•ด ์ดˆ๋ณด์ž๋„ ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๊ฒŒ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."],
488
  ["ํ•œ๊ตญ์˜ ์ „ํ†ต ๊ฑด์ถ•๋ฌผ์— ๋‹ด๊ธด ๊ณผํ•™์  ์›๋ฆฌ๋ฅผ ํ˜„๋Œ€์  ๊ด€์ ์—์„œ ๋ถ„์„ํ•ด์ฃผ์„ธ์š”."],
489
  ],
490
+ inputs=msg
 
491
  )
492
 
493
+ # ์ด๋ฒคํŠธ ๋ฐ”์ธ๋”ฉ (์ด์ „๊ณผ ๋™์ผ)
494
  msg.submit(
495
  stream_chat,
496
  inputs=[msg, chatbot, file_upload, temperature, max_new_tokens, top_p, top_k, penalty],