Spaces:
Running
on
Zero
Running
on
Zero
cutechicken
commited on
Commit
โข
3cfd908
1
Parent(s):
b03b509
Update app.py
Browse files
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=
|
435 |
min_width=50,
|
436 |
elem_classes="file-upload-button"
|
437 |
)
|
438 |
msg = gr.Textbox(
|
439 |
show_label=False,
|
440 |
placeholder="๋ฉ์์ง๋ฅผ ์
๋ ฅํ์ธ์... ๐ญ",
|
441 |
-
scale=
|
442 |
container=False
|
443 |
)
|
444 |
send = gr.Button(
|
445 |
"์ ์ก",
|
446 |
-
scale=
|
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],
|