Spaces:
Sleeping
Sleeping
Extended Limititation
Browse files
app.py
CHANGED
|
@@ -43,14 +43,15 @@ def respond(
|
|
| 43 |
demo = gr.Interface(
|
| 44 |
fn=respond,
|
| 45 |
title="Text Generation Playground",
|
| 46 |
-
description="""Model: Qwen/Qwen3-8B, Max input length:
|
| 47 |
-
|
|
|
|
| 48 |
Try again or refresh the page if you encounter an error.""",
|
| 49 |
inputs=[
|
| 50 |
gr.Textbox(
|
| 51 |
lines=15,
|
| 52 |
label="Input Prompt",
|
| 53 |
-
max_length=
|
| 54 |
placeholder="""Copy-Paste your own alignment prompt here:
|
| 55 |
E.g. # System-level prompt: You are a helpful assistant...\n
|
| 56 |
# Query: Who painted the Mona Lisa?\n
|
|
@@ -58,7 +59,7 @@ E.g. # System-level prompt: You are a helpful assistant...\n
|
|
| 58 |
# Query: ...\n
|
| 59 |
# Answer:
|
| 60 |
|
| 61 |
-
# **Due to the limitations of the service, keep your prompt under
|
| 62 |
),
|
| 63 |
gr.Slider(minimum=1, maximum=300, value=150, step=1, label="Max new tokens"),
|
| 64 |
gr.Slider(minimum=0, maximum=2.0, value=1, step=0.01, label="Temperature"),
|
|
|
|
| 43 |
demo = gr.Interface(
|
| 44 |
fn=respond,
|
| 45 |
title="Text Generation Playground",
|
| 46 |
+
description="""Model: Qwen/Qwen3-8B, Max input length: 1500 characters\n
|
| 47 |
+
Longer prompts take more time to process and may lead to timeouts or errors, Please keep your prompt short and concise.\n
|
| 48 |
+
Prompts longer than 1500 characters will be truncated, which may lead to incomplete or unexpected responses.\n
|
| 49 |
Try again or refresh the page if you encounter an error.""",
|
| 50 |
inputs=[
|
| 51 |
gr.Textbox(
|
| 52 |
lines=15,
|
| 53 |
label="Input Prompt",
|
| 54 |
+
max_length=1500,
|
| 55 |
placeholder="""Copy-Paste your own alignment prompt here:
|
| 56 |
E.g. # System-level prompt: You are a helpful assistant...\n
|
| 57 |
# Query: Who painted the Mona Lisa?\n
|
|
|
|
| 59 |
# Query: ...\n
|
| 60 |
# Answer:
|
| 61 |
|
| 62 |
+
# **Due to the limitations of the service, keep your prompt under 1500 characters.**""",
|
| 63 |
),
|
| 64 |
gr.Slider(minimum=1, maximum=300, value=150, step=1, label="Max new tokens"),
|
| 65 |
gr.Slider(minimum=0, maximum=2.0, value=1, step=0.01, label="Temperature"),
|