Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -246,7 +246,7 @@ examples_chn = [
|
|
246 |
with gr.Blocks(title=title) as demo:
|
247 |
gr.HTML(f"<div style=\"text-align: center;\">\n<h1>{title}</h1>\n</div>")
|
248 |
|
249 |
-
with gr.Tab("Base Model (Raw Generation)"):
|
250 |
gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/rwkv-6-world) base model. Supports 100+ world languages and code. RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
|
251 |
with gr.Row():
|
252 |
with gr.Column():
|
@@ -266,7 +266,7 @@ with gr.Blocks(title=title) as demo:
|
|
266 |
clear.click(lambda: None, [], [output])
|
267 |
data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
268 |
|
269 |
-
with gr.Tab("English Q/A"):
|
270 |
gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/rwkv-6-world) state-tuned to [English Q/A](https://huggingface.co/BlinkDL/temp-latest-training-models/blob/main/{eng_name}.pth). RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
|
271 |
with gr.Row():
|
272 |
with gr.Column():
|
@@ -286,11 +286,11 @@ with gr.Blocks(title=title) as demo:
|
|
286 |
clear.click(lambda: None, [], [output])
|
287 |
data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
288 |
|
289 |
-
with gr.Tab("Chinese Q/A"):
|
290 |
gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/rwkv-6-world) state-tuned to [Chinese Q/A](https://huggingface.co/BlinkDL/temp-latest-training-models/blob/main/{chn_name}.pth). RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
|
291 |
with gr.Row():
|
292 |
with gr.Column():
|
293 |
-
prompt = gr.Textbox(lines=2, label="Prompt", value="
|
294 |
token_count = gr.Slider(10, gen_limit, label="Max Tokens", step=10, value=gen_limit)
|
295 |
temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
|
296 |
top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.2)
|
|
|
246 |
with gr.Blocks(title=title) as demo:
|
247 |
gr.HTML(f"<div style=\"text-align: center;\">\n<h1>{title}</h1>\n</div>")
|
248 |
|
249 |
+
with gr.Tab("=== Base Model (Raw Generation) ==="):
|
250 |
gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/rwkv-6-world) base model. Supports 100+ world languages and code. RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
|
251 |
with gr.Row():
|
252 |
with gr.Column():
|
|
|
266 |
clear.click(lambda: None, [], [output])
|
267 |
data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
268 |
|
269 |
+
with gr.Tab("=== English Q/A ==="):
|
270 |
gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/rwkv-6-world) state-tuned to [English Q/A](https://huggingface.co/BlinkDL/temp-latest-training-models/blob/main/{eng_name}.pth). RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
|
271 |
with gr.Row():
|
272 |
with gr.Column():
|
|
|
286 |
clear.click(lambda: None, [], [output])
|
287 |
data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
288 |
|
289 |
+
with gr.Tab("=== Chinese Q/A ==="):
|
290 |
gr.Markdown(f"This is [RWKV-6](https://huggingface.co/BlinkDL/rwkv-6-world) state-tuned to [Chinese Q/A](https://huggingface.co/BlinkDL/temp-latest-training-models/blob/main/{chn_name}.pth). RWKV is a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM), and we have [300+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). Demo limited to ctxlen {ctx_limit}.")
|
291 |
with gr.Row():
|
292 |
with gr.Column():
|
293 |
+
prompt = gr.Textbox(lines=2, label="Prompt", value="怎样写一个在火星上的吸血鬼的有趣故事?")
|
294 |
token_count = gr.Slider(10, gen_limit, label="Max Tokens", step=10, value=gen_limit)
|
295 |
temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
|
296 |
top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.2)
|