Spaces:
Sleeping
Sleeping
uu
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ demo = gr.Interface(
|
|
| 34 |
fn=chat,
|
| 35 |
inputs=[
|
| 36 |
gr.Textbox(label="Prompt", lines=4, placeholder="Ask anything..."),
|
| 37 |
-
gr.Slider(32, 512, value=256, step=
|
| 38 |
gr.Slider(0.1, 1.5, value=0.7, step=0.1, label="Temperature")
|
| 39 |
],
|
| 40 |
outputs=gr.Textbox(label="Response"),
|
|
@@ -42,7 +42,5 @@ demo = gr.Interface(
|
|
| 42 |
description="Run PowerInfer/SmallThinker-21BA3B-Instruct"
|
| 43 |
)
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
if __name__ == "__main__":
|
| 48 |
demo.launch()
|
|
|
|
| 34 |
fn=chat,
|
| 35 |
inputs=[
|
| 36 |
gr.Textbox(label="Prompt", lines=4, placeholder="Ask anything..."),
|
| 37 |
+
gr.Slider(32, 512, value=256, step=8, label="Max New Tokens"),
|
| 38 |
gr.Slider(0.1, 1.5, value=0.7, step=0.1, label="Temperature")
|
| 39 |
],
|
| 40 |
outputs=gr.Textbox(label="Response"),
|
|
|
|
| 42 |
description="Run PowerInfer/SmallThinker-21BA3B-Instruct"
|
| 43 |
)
|
| 44 |
|
|
|
|
|
|
|
| 45 |
if __name__ == "__main__":
|
| 46 |
demo.launch()
|