Spaces:
Running
on
Zero
Running
on
Zero
aixsatoshi
commited on
Commit
•
5dde4de
1
Parent(s):
9e85760
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ def respond(
|
|
121 |
outputs += output
|
122 |
yield outputs
|
123 |
|
124 |
-
description = """<p align="center"
|
125 |
<p><center>
|
126 |
<a href="https://huggingface.co/Aratako/Oumuamua-7b-RP-GGUF" target="_blank">[Oumuamua-7b-RP Model]</a>
|
127 |
<a href="https://huggingface.co/bartowski/Oumuamua-7b-instruct-v2-GGUF" target="_blank">[Oumuamua-7b-instruct-v2 Model]</a>
|
@@ -152,9 +152,14 @@ demo = gr.ChatInterface(
|
|
152 |
value="Oumuamua-7b-RP_Q4_K_M.gguf",
|
153 |
label="Model"
|
154 |
),
|
|
|
|
|
|
|
|
|
|
|
155 |
gr.Textbox(value="You are a helpful assistant.", label="System message"),
|
156 |
gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
|
157 |
-
gr.Slider(minimum=0.1, maximum
|
158 |
gr.Slider(
|
159 |
minimum=0.1,
|
160 |
maximum=1.0,
|
@@ -176,11 +181,6 @@ demo = gr.ChatInterface(
|
|
176 |
step=0.1,
|
177 |
label="Repetition penalty",
|
178 |
),
|
179 |
-
gr.Dropdown(
|
180 |
-
choices=templates,
|
181 |
-
value="LLAMA_3",
|
182 |
-
label="Template"
|
183 |
-
),
|
184 |
],
|
185 |
retry_btn="Retry",
|
186 |
undo_btn="Undo",
|
@@ -195,5 +195,6 @@ demo = gr.ChatInterface(
|
|
195 |
)
|
196 |
)
|
197 |
|
|
|
198 |
if __name__ == "__main__":
|
199 |
demo.launch()
|
|
|
121 |
outputs += output
|
122 |
yield outputs
|
123 |
|
124 |
+
description = """<p align="center">モデルとチャットテンプレートを選択してください (you can switch to other models from additional inputs)</p>
|
125 |
<p><center>
|
126 |
<a href="https://huggingface.co/Aratako/Oumuamua-7b-RP-GGUF" target="_blank">[Oumuamua-7b-RP Model]</a>
|
127 |
<a href="https://huggingface.co/bartowski/Oumuamua-7b-instruct-v2-GGUF" target="_blank">[Oumuamua-7b-instruct-v2 Model]</a>
|
|
|
152 |
value="Oumuamua-7b-RP_Q4_K_M.gguf",
|
153 |
label="Model"
|
154 |
),
|
155 |
+
gr.Dropdown(
|
156 |
+
choices=templates,
|
157 |
+
value="LLAMA_2",
|
158 |
+
label="Template"
|
159 |
+
),
|
160 |
gr.Textbox(value="You are a helpful assistant.", label="System message"),
|
161 |
gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
|
162 |
+
gr.Slider(minimum=0.1, maximum 4.0, value=0.7, step=0.1, label="Temperature"),
|
163 |
gr.Slider(
|
164 |
minimum=0.1,
|
165 |
maximum=1.0,
|
|
|
181 |
step=0.1,
|
182 |
label="Repetition penalty",
|
183 |
),
|
|
|
|
|
|
|
|
|
|
|
184 |
],
|
185 |
retry_btn="Retry",
|
186 |
undo_btn="Undo",
|
|
|
195 |
)
|
196 |
)
|
197 |
|
198 |
+
|
199 |
if __name__ == "__main__":
|
200 |
demo.launch()
|