Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,9 @@ def chat(message, history, sample_times, perturb_times,threshold):
|
|
183 |
yield partial_text
|
184 |
|
185 |
#demo = gr.ChatInterface(fn=chat, examples=["hello", "hola", "merhaba"], title="Gradient Cuff Vicuna-7B-V1.5")
|
186 |
-
|
|
|
|
|
187 |
gr.Slider(minimum=0, maximum=10, step=1, value=2, label="N - Sample times"),
|
188 |
gr.Slider(minimum=0, maximum=10, step=1, value=2, label="P - Perturb times"),
|
189 |
gr.Slider(minimum=0, maximum=1000, step=1, value=100, label="t - threshold")
|
|
|
183 |
yield partial_text
|
184 |
|
185 |
#demo = gr.ChatInterface(fn=chat, examples=["hello", "hola", "merhaba"], title="Gradient Cuff Vicuna-7B-V1.5")
|
186 |
+
box = gr.Textbox(lines=3,max_lines=5)
|
187 |
+
|
188 |
+
with gr.ChatInterface(fn=chat, textbox=box, title="Gradient Cuff Stablelm-2-zephyr-1_6b",additional_inputs=[
|
189 |
gr.Slider(minimum=0, maximum=10, step=1, value=2, label="N - Sample times"),
|
190 |
gr.Slider(minimum=0, maximum=10, step=1, value=2, label="P - Perturb times"),
|
191 |
gr.Slider(minimum=0, maximum=1000, step=1, value=100, label="t - threshold")
|