Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,7 @@ def chat(message, history, uploaded_file, model_name, system_message="", max_tok
|
|
90 |
css = """
|
91 |
footer {visibility: hidden}
|
92 |
"""
|
|
|
93 |
|
94 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
95 |
with gr.Row():
|
@@ -112,8 +113,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
112 |
)
|
113 |
|
114 |
file_upload = gr.File(
|
115 |
-
label="ํ์ผ ์
๋ก๋
|
116 |
-
file_types=["
|
117 |
type="filepath"
|
118 |
)
|
119 |
|
@@ -123,6 +124,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
123 |
temperature = gr.Slider(minimum=0, maximum=1, value=0.7, label="Temperature")
|
124 |
top_p = gr.Slider(minimum=0, maximum=1, value=0.9, label="Top P")
|
125 |
|
|
|
|
|
126 |
# ์ด๋ฒคํธ ๋ฐ์ธ๋ฉ
|
127 |
msg.submit(
|
128 |
chat,
|
|
|
90 |
css = """
|
91 |
footer {visibility: hidden}
|
92 |
"""
|
93 |
+
# ... (์ด์ ์ฝ๋ ๋์ผ)
|
94 |
|
95 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
96 |
with gr.Row():
|
|
|
113 |
)
|
114 |
|
115 |
file_upload = gr.File(
|
116 |
+
label="ํ์ผ ์
๋ก๋",
|
117 |
+
file_types=["text", ".parquet"], # ํ์ผ ํ์
์์
|
118 |
type="filepath"
|
119 |
)
|
120 |
|
|
|
124 |
temperature = gr.Slider(minimum=0, maximum=1, value=0.7, label="Temperature")
|
125 |
top_p = gr.Slider(minimum=0, maximum=1, value=0.9, label="Top P")
|
126 |
|
127 |
+
|
128 |
+
|
129 |
# ์ด๋ฒคํธ ๋ฐ์ธ๋ฉ
|
130 |
msg.submit(
|
131 |
chat,
|