Update app.py
Browse files
app.py
CHANGED
@@ -50,21 +50,18 @@ demo = gr.ChatInterface(
|
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
gr.Textbox(value="Ben, a young boy", label="Character"),
|
53 |
-
2048,
|
54 |
-
0.6,
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
],
|
57 |
)
|
58 |
|
59 |
|
60 |
if __name__ == "__main__":
|
61 |
-
demo.launch()
|
62 |
-
|
63 |
-
# gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="Max new tokens"),
|
64 |
-
# gr.Slider(minimum=0.1, maximum=4.0, value=0.6, step=0.1, label="Temperature"),
|
65 |
-
# gr.Slider(
|
66 |
-
# minimum=0.1,
|
67 |
-
# maximum=1.0,
|
68 |
-
# value=0.95,
|
69 |
-
# step=0.05,
|
70 |
-
# label="Top-p (nucleus sampling)",
|
|
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
gr.Textbox(value="Ben, a young boy", label="Character"),
|
53 |
+
gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="Max new tokens"),
|
54 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.6, step=0.1, label="Temperature"),
|
55 |
+
gr.Slider(
|
56 |
+
minimum=0.1,
|
57 |
+
maximum=1.0,
|
58 |
+
value=0.95,
|
59 |
+
step=0.05,
|
60 |
+
label="Top-p (nucleus sampling)",
|
61 |
+
),
|
62 |
],
|
63 |
)
|
64 |
|
65 |
|
66 |
if __name__ == "__main__":
|
67 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|