Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -656,33 +656,34 @@ with gr.Blocks(css=css, title="Vidraft-G3-27B ") as demo:
|
|
656 |
visible=False # ํ๋ฉด์์ ๊ฐ์ถค
|
657 |
)
|
658 |
# ์ฑํ
์ธํฐํ์ด์ค๋ฅผ ํ๋ฉด ์ ์ฒด ํญ์ผ๋ก ์ฌ์ฉ
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
file_count="multiple",
|
669 |
-
autofocus=True
|
670 |
-
),
|
671 |
-
multimodal=True,
|
672 |
-
additional_inputs=[
|
673 |
-
system_prompt_box,
|
674 |
-
max_tokens_slider,
|
675 |
-
web_search_checkbox,
|
676 |
-
web_search_text,
|
677 |
],
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
|
687 |
with gr.Row(elem_id="examples_row"):
|
688 |
with gr.Column(scale=12, elem_id="examples_container"):
|
|
|
656 |
visible=False # ํ๋ฉด์์ ๊ฐ์ถค
|
657 |
)
|
658 |
# ์ฑํ
์ธํฐํ์ด์ค๋ฅผ ํ๋ฉด ์ ์ฒด ํญ์ผ๋ก ์ฌ์ฉ
|
659 |
+
# ๋ค์ฌ์ฐ๊ธฐ ์์
|
660 |
+
chat = gr.ChatInterface(
|
661 |
+
fn=run,
|
662 |
+
type="messages",
|
663 |
+
chatbot=gr.Chatbot(type="messages", scale=1, allow_tags=["image"]),
|
664 |
+
textbox=gr.MultimodalTextbox(
|
665 |
+
file_types=[
|
666 |
+
".webp", ".png", ".jpg", ".jpeg", ".gif",
|
667 |
+
".mp4", ".csv", ".txt", ".pdf"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
668 |
],
|
669 |
+
file_count="multiple",
|
670 |
+
autofocus=True
|
671 |
+
),
|
672 |
+
multimodal=True,
|
673 |
+
additional_inputs=[
|
674 |
+
system_prompt_box,
|
675 |
+
max_tokens_slider,
|
676 |
+
web_search_checkbox,
|
677 |
+
web_search_text,
|
678 |
+
],
|
679 |
+
stop_btn=False,
|
680 |
+
title='<a href="https://discord.gg/openfreeai" target="_blank">https://discord.gg/openfreeai</a>',
|
681 |
+
examples=examples,
|
682 |
+
run_examples_on_click=False,
|
683 |
+
cache_examples=False,
|
684 |
+
css_paths=None,
|
685 |
+
delete_cache=(1800, 1800),
|
686 |
+
)
|
687 |
|
688 |
with gr.Row(elem_id="examples_row"):
|
689 |
with gr.Column(scale=12, elem_id="examples_container"):
|