Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def instruct_generate(
|
|
61 |
img_path: str = " ",
|
62 |
prompt: str = "What food do lamas eat?",
|
63 |
input: str = "",
|
64 |
-
max_new_tokens: int =
|
65 |
temperature: float = 0.8,
|
66 |
top_k: int = 200,
|
67 |
) -> None:
|
@@ -143,7 +143,7 @@ def create_instruct_demo():
|
|
143 |
|
144 |
instruction = gr.Textbox(
|
145 |
lines=2, label="Instruction", placeholder="Please input the instruction. E.g.Please turn on the lamp")
|
146 |
-
max_len = gr.Slider(minimum=
|
147 |
value=1024, label="Max length")
|
148 |
with gr.Accordion(label='Advanced options', open=False):
|
149 |
temp = gr.Slider(minimum=0, maximum=1,
|
|
|
61 |
img_path: str = " ",
|
62 |
prompt: str = "What food do lamas eat?",
|
63 |
input: str = "",
|
64 |
+
max_new_tokens: int = 1024,
|
65 |
temperature: float = 0.8,
|
66 |
top_k: int = 200,
|
67 |
) -> None:
|
|
|
143 |
|
144 |
instruction = gr.Textbox(
|
145 |
lines=2, label="Instruction", placeholder="Please input the instruction. E.g.Please turn on the lamp")
|
146 |
+
max_len = gr.Slider(minimum=512, maximum=1024,
|
147 |
value=1024, label="Max length")
|
148 |
with gr.Accordion(label='Advanced options', open=False):
|
149 |
temp = gr.Slider(minimum=0, maximum=1,
|