Spaces:
Runtime error
Runtime error
freeCS-dot-org
commited on
Commit
•
8585887
1
Parent(s):
c5321e4
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def phine(message, history, temperature, top_p, top_k, repetition_penalty, sys_m
|
|
129 |
response = cut_text_after_last_token(completion, token)
|
130 |
|
131 |
|
132 |
-
res = f"""<details><summary>Reasoning</summary>{reasoning}</details>\n\n{response}"""
|
133 |
|
134 |
return res
|
135 |
|
@@ -138,7 +138,7 @@ demo = gr.ChatInterface(phine,
|
|
138 |
title="ArtificialThinker Demo on GPU",
|
139 |
description="A demo of [ArtificialThinker](https://huggingface.co/freecs/ArtificialThinker-Phi2) on GPU. ArtificialThinker is a 2.7B parameter model based on Phi 2. Because it is based on Phi 2, there may be commercial use restrictions. Please consult a lawyer before using commercially. I am not affiliated with the authors of the model.",
|
140 |
additional_inputs=[
|
141 |
-
gr.Slider(0.1, 2.0, label="temperature", value=0.
|
142 |
gr.Slider(0.1, 2.0, label="Top P", value=0.9),
|
143 |
gr.Slider(1, 500, label="Top K", value=50),
|
144 |
gr.Slider(0.1, 2.0, label="Repetition Penalty", value=1.1),
|
|
|
129 |
response = cut_text_after_last_token(completion, token)
|
130 |
|
131 |
|
132 |
+
res = f"""<details><summary>Reasoning (Click Me)</summary>{reasoning}</details>\n\n{response}"""
|
133 |
|
134 |
return res
|
135 |
|
|
|
138 |
title="ArtificialThinker Demo on GPU",
|
139 |
description="A demo of [ArtificialThinker](https://huggingface.co/freecs/ArtificialThinker-Phi2) on GPU. ArtificialThinker is a 2.7B parameter model based on Phi 2. Because it is based on Phi 2, there may be commercial use restrictions. Please consult a lawyer before using commercially. I am not affiliated with the authors of the model.",
|
140 |
additional_inputs=[
|
141 |
+
gr.Slider(0.1, 2.0, label="temperature", value=0.3),
|
142 |
gr.Slider(0.1, 2.0, label="Top P", value=0.9),
|
143 |
gr.Slider(1, 500, label="Top K", value=50),
|
144 |
gr.Slider(0.1, 2.0, label="Repetition Penalty", value=1.1),
|