Spaces:
Runtime error
Runtime error
Set Sparrow defaults
Browse files
app.ipynb
CHANGED
@@ -101,7 +101,7 @@
|
|
101 |
},
|
102 |
{
|
103 |
"cell_type": "code",
|
104 |
-
"execution_count":
|
105 |
"metadata": {},
|
106 |
"outputs": [],
|
107 |
"source": [
|
@@ -763,17 +763,17 @@
|
|
763 |
" )\n",
|
764 |
" temperature = gr.Slider(\n",
|
765 |
" minimum=0.0,\n",
|
766 |
-
" maximum=
|
767 |
-
" value=0
|
768 |
" step=0.1,\n",
|
769 |
" interactive=True,\n",
|
770 |
" label=\"Temperature\",\n",
|
771 |
" )\n",
|
772 |
"\n",
|
773 |
" top_p = gr.Slider(\n",
|
774 |
-
" minimum
|
775 |
" maximum=1.0,\n",
|
776 |
-
" value=0.
|
777 |
" step=0.05,\n",
|
778 |
" interactive=True,\n",
|
779 |
" label=\"Top-p (nucleus sampling)\",\n",
|
@@ -846,7 +846,7 @@
|
|
846 |
},
|
847 |
{
|
848 |
"cell_type": "code",
|
849 |
-
"execution_count":
|
850 |
"metadata": {},
|
851 |
"outputs": [],
|
852 |
"source": [
|
|
|
101 |
},
|
102 |
{
|
103 |
"cell_type": "code",
|
104 |
+
"execution_count": 12,
|
105 |
"metadata": {},
|
106 |
"outputs": [],
|
107 |
"source": [
|
|
|
763 |
" )\n",
|
764 |
" temperature = gr.Slider(\n",
|
765 |
" minimum=0.0,\n",
|
766 |
+
" maximum=2.0,\n",
|
767 |
+
" value=1.0,\n",
|
768 |
" step=0.1,\n",
|
769 |
" interactive=True,\n",
|
770 |
" label=\"Temperature\",\n",
|
771 |
" )\n",
|
772 |
"\n",
|
773 |
" top_p = gr.Slider(\n",
|
774 |
+
" minimum=0.,\n",
|
775 |
" maximum=1.0,\n",
|
776 |
+
" value=0.8,\n",
|
777 |
" step=0.05,\n",
|
778 |
" interactive=True,\n",
|
779 |
" label=\"Top-p (nucleus sampling)\",\n",
|
|
|
846 |
},
|
847 |
{
|
848 |
"cell_type": "code",
|
849 |
+
"execution_count": 13,
|
850 |
"metadata": {},
|
851 |
"outputs": [],
|
852 |
"source": [
|
app.py
CHANGED
@@ -132,17 +132,17 @@ with gr.Blocks(
|
|
132 |
)
|
133 |
temperature = gr.Slider(
|
134 |
minimum=0.0,
|
135 |
-
maximum=
|
136 |
-
value=0
|
137 |
step=0.1,
|
138 |
interactive=True,
|
139 |
label="Temperature",
|
140 |
)
|
141 |
|
142 |
top_p = gr.Slider(
|
143 |
-
minimum
|
144 |
maximum=1.0,
|
145 |
-
value=0.
|
146 |
step=0.05,
|
147 |
interactive=True,
|
148 |
label="Top-p (nucleus sampling)",
|
|
|
132 |
)
|
133 |
temperature = gr.Slider(
|
134 |
minimum=0.0,
|
135 |
+
maximum=2.0,
|
136 |
+
value=1.0,
|
137 |
step=0.1,
|
138 |
interactive=True,
|
139 |
label="Temperature",
|
140 |
)
|
141 |
|
142 |
top_p = gr.Slider(
|
143 |
+
minimum=0.,
|
144 |
maximum=1.0,
|
145 |
+
value=0.8,
|
146 |
step=0.05,
|
147 |
interactive=True,
|
148 |
label="Top-p (nucleus sampling)",
|