Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -188,23 +188,8 @@ PLACEHOLDER = """
|
|
188 |
</div>
|
189 |
"""
|
190 |
|
191 |
-
demo = gr.
|
192 |
fn=respond,
|
193 |
-
inputs=[
|
194 |
-
gr.Textbox(placeholder="๋ฉ์์ง๋ฅผ ์
๋ ฅํ์ธ์...", label=""),
|
195 |
-
gr.State([]), # ๋ํ ๊ธฐ๋ก์ ์ ์ฅํ๋ State
|
196 |
-
gr.Textbox(
|
197 |
-
value="You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem.",
|
198 |
-
label="์์คํ
๋ฉ์์ง",
|
199 |
-
lines=5
|
200 |
-
),
|
201 |
-
gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="์ต๋ ํ ํฐ ์"),
|
202 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
203 |
-
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p"),
|
204 |
-
gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k"),
|
205 |
-
gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty"),
|
206 |
-
],
|
207 |
-
outputs=gr.Chatbot(placeholder=PLACEHOLDER, type="messages"),
|
208 |
title="Ginigen Private AI",
|
209 |
description="6BIT ์์ํ๋ก ๋ชจ๋ธ ํฌ๊ธฐ๋ ์ค์ด๊ณ ์ฑ๋ฅ์ ์ ์งํ๋ ํ๋ผ์ด๋ฒ์ ์ค์ฌ AI ์๋ฃจ์
.",
|
210 |
theme=gr.themes.Soft(primary_hue="violet", secondary_hue="violet", neutral_hue="gray",font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(
|
@@ -226,7 +211,19 @@ demo = gr.Interface(
|
|
226 |
["๋ฏธ์คํธ๋ ๋ชจ๋ธ์ ํน์ง์ ๋ฌด์์ธ๊ฐ์?"],
|
227 |
["๊ธด ์ปจํ
์คํธ(context)๋ฅผ ์ฒ๋ฆฌํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช
ํด ์ฃผ์ธ์."]
|
228 |
],
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
)
|
231 |
|
232 |
if __name__ == "__main__":
|
|
|
188 |
</div>
|
189 |
"""
|
190 |
|
191 |
+
demo = gr.ChatInterface(
|
192 |
fn=respond,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
title="Ginigen Private AI",
|
194 |
description="6BIT ์์ํ๋ก ๋ชจ๋ธ ํฌ๊ธฐ๋ ์ค์ด๊ณ ์ฑ๋ฅ์ ์ ์งํ๋ ํ๋ผ์ด๋ฒ์ ์ค์ฌ AI ์๋ฃจ์
.",
|
195 |
theme=gr.themes.Soft(primary_hue="violet", secondary_hue="violet", neutral_hue="gray",font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]).set(
|
|
|
211 |
["๋ฏธ์คํธ๋ ๋ชจ๋ธ์ ํน์ง์ ๋ฌด์์ธ๊ฐ์?"],
|
212 |
["๊ธด ์ปจํ
์คํธ(context)๋ฅผ ์ฒ๋ฆฌํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช
ํด ์ฃผ์ธ์."]
|
213 |
],
|
214 |
+
additional_inputs=[
|
215 |
+
gr.Textbox(
|
216 |
+
value="You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside tags, and then provide your solution or response to the problem.",
|
217 |
+
label="์์คํ
๋ฉ์์ง",
|
218 |
+
lines=5
|
219 |
+
),
|
220 |
+
gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="์ต๋ ํ ํฐ ์"),
|
221 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
222 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p"),
|
223 |
+
gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k"),
|
224 |
+
gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty"),
|
225 |
+
],
|
226 |
+
chatbot=gr.Chatbot(placeholder=PLACEHOLDER, type="messages")
|
227 |
)
|
228 |
|
229 |
if __name__ == "__main__":
|