Spaces:
Sleeping
Sleeping
format and increase default max_new_tokens
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ with gr.Blocks() as demo:
|
|
93 |
f"Feel free to [duplicate this Space]({duplicate_link}) to try your own models or use this space as a "
|
94 |
"template! π"
|
95 |
)
|
96 |
-
|
97 |
with gr.Row():
|
98 |
with gr.Column(scale=4):
|
99 |
user_text = gr.Textbox(
|
@@ -101,13 +101,13 @@ with gr.Blocks() as demo:
|
|
101 |
label="User input",
|
102 |
)
|
103 |
model_output = gr.Textbox(label="Model output", lines=10, interactive=False)
|
104 |
-
button_submit = gr.Button(value="Submit")
|
105 |
|
106 |
with gr.Column(scale=1):
|
107 |
max_new_tokens = gr.Slider(
|
108 |
minimum=32,
|
109 |
maximum=1024,
|
110 |
-
value=
|
111 |
step=32,
|
112 |
interactive=True,
|
113 |
label="Max New Tokens",
|
|
|
93 |
f"Feel free to [duplicate this Space]({duplicate_link}) to try your own models or use this space as a "
|
94 |
"template! π"
|
95 |
)
|
96 |
+
gr.Markdown("---")
|
97 |
with gr.Row():
|
98 |
with gr.Column(scale=4):
|
99 |
user_text = gr.Textbox(
|
|
|
101 |
label="User input",
|
102 |
)
|
103 |
model_output = gr.Textbox(label="Model output", lines=10, interactive=False)
|
104 |
+
button_submit = gr.Button(value="Submit", variant="primary")
|
105 |
|
106 |
with gr.Column(scale=1):
|
107 |
max_new_tokens = gr.Slider(
|
108 |
minimum=32,
|
109 |
maximum=1024,
|
110 |
+
value=256,
|
111 |
step=32,
|
112 |
interactive=True,
|
113 |
label="Max New Tokens",
|