Spaces:
Sleeping
Sleeping
alessiodevoto
commited on
Commit
•
dd7f1ed
1
Parent(s):
4eeb29b
update
Browse files
app.py
CHANGED
@@ -154,7 +154,9 @@ def main():
|
|
154 |
step=0.05,
|
155 |
value=llm_handler.default_temperature
|
156 |
)
|
|
|
157 |
with gr.Row():
|
|
|
158 |
max_tokens = gr.Number(
|
159 |
label="Max Tokens",
|
160 |
value=llm_handler.default_max_tokens,
|
@@ -163,10 +165,11 @@ def main():
|
|
163 |
|
164 |
custom_template = gr.File(
|
165 |
label="Custom Template",
|
166 |
-
file_types="html",
|
167 |
visible=True)
|
168 |
|
169 |
with gr.Row():
|
|
|
170 |
system_message = gr.Textbox(
|
171 |
label="System Message",
|
172 |
placeholder="Enter a custom system message (optional).",
|
@@ -175,9 +178,9 @@ def main():
|
|
175 |
)
|
176 |
|
177 |
few_shot = gr.Textbox(
|
178 |
-
label="Few
|
179 |
-
placeholder="Enter
|
180 |
-
value=
|
181 |
visible=True)
|
182 |
|
183 |
|
|
|
154 |
step=0.05,
|
155 |
value=llm_handler.default_temperature
|
156 |
)
|
157 |
+
|
158 |
with gr.Row():
|
159 |
+
|
160 |
max_tokens = gr.Number(
|
161 |
label="Max Tokens",
|
162 |
value=llm_handler.default_max_tokens,
|
|
|
165 |
|
166 |
custom_template = gr.File(
|
167 |
label="Custom Template",
|
168 |
+
file_types=["html"],
|
169 |
visible=True)
|
170 |
|
171 |
with gr.Row():
|
172 |
+
|
173 |
system_message = gr.Textbox(
|
174 |
label="System Message",
|
175 |
placeholder="Enter a custom system message (optional).",
|
|
|
178 |
)
|
179 |
|
180 |
few_shot = gr.Textbox(
|
181 |
+
label="Few-Shot Examples",
|
182 |
+
placeholder="Enter custom few shot (optional).",
|
183 |
+
value="",
|
184 |
visible=True)
|
185 |
|
186 |
|