Spaces:
Runtime error
Runtime error
Commit
•
9380cde
1
Parent(s):
e715043
Updated to use blocks
Browse files
app.py
CHANGED
@@ -61,44 +61,44 @@ def generate(
|
|
61 |
return output
|
62 |
|
63 |
|
64 |
-
additional_inputs = [
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
]
|
102 |
|
103 |
with gr.Blocks(fill_height=True) as demo:
|
104 |
|
@@ -114,7 +114,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
114 |
layout="panel",
|
115 |
placeholder=PLACEHOLDER,
|
116 |
),
|
117 |
-
additional_inputs=additional_inputs,
|
118 |
examples=[
|
119 |
["Ask me what an acronym stands for"],
|
120 |
["How can I check my leave allowance?"],
|
|
|
61 |
return output
|
62 |
|
63 |
|
64 |
+
# additional_inputs = [
|
65 |
+
# gr.Slider(
|
66 |
+
# label="Temperature",
|
67 |
+
# value=0.9,
|
68 |
+
# minimum=0.0,
|
69 |
+
# maximum=1.0,
|
70 |
+
# step=0.05,
|
71 |
+
# interactive=True,
|
72 |
+
# info="Higher values produce more diverse outputs",
|
73 |
+
# ),
|
74 |
+
# gr.Slider(
|
75 |
+
# label="Max new tokens",
|
76 |
+
# value=256,
|
77 |
+
# minimum=0,
|
78 |
+
# maximum=1048,
|
79 |
+
# step=64,
|
80 |
+
# interactive=True,
|
81 |
+
# info="The maximum numbers of new tokens",
|
82 |
+
# ),
|
83 |
+
# gr.Slider(
|
84 |
+
# label="Top-p (nucleus sampling)",
|
85 |
+
# value=0.90,
|
86 |
+
# minimum=0.0,
|
87 |
+
# maximum=1,
|
88 |
+
# step=0.05,
|
89 |
+
# interactive=True,
|
90 |
+
# info="Higher values sample more low-probability tokens",
|
91 |
+
# ),
|
92 |
+
# gr.Slider(
|
93 |
+
# label="Repetition penalty",
|
94 |
+
# value=1.2,
|
95 |
+
# minimum=1.0,
|
96 |
+
# maximum=2.0,
|
97 |
+
# step=0.05,
|
98 |
+
# interactive=True,
|
99 |
+
# info="Penalize repeated tokens",
|
100 |
+
# ),
|
101 |
+
# ]
|
102 |
|
103 |
with gr.Blocks(fill_height=True) as demo:
|
104 |
|
|
|
114 |
layout="panel",
|
115 |
placeholder=PLACEHOLDER,
|
116 |
),
|
117 |
+
# additional_inputs=additional_inputs,
|
118 |
examples=[
|
119 |
["Ask me what an acronym stands for"],
|
120 |
["How can I check my leave allowance?"],
|