Spaces:
Runtime error
Runtime error
l1006986533
commited on
Commit
•
6d8da18
1
Parent(s):
015c7dd
Update app.py
Browse files
app.py
CHANGED
@@ -69,6 +69,7 @@ def evaluate(
|
|
69 |
presencePenalty = 0.1,
|
70 |
countPenalty = 0.1,
|
71 |
):
|
|
|
72 |
args = PIPELINE_ARGS(temperature = max(0.2, float(temperature)), top_p = float(top_p),
|
73 |
alpha_frequency = countPenalty,
|
74 |
alpha_presence = presencePenalty,
|
@@ -147,7 +148,7 @@ with gr.Blocks(title=title) as demo:
|
|
147 |
gr.Markdown(f"This is [RWKV-5 World v2](https://huggingface.co/BlinkDL/rwkv-5-world) with 1.5B params - a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM). Supports all 100+ world languages and code. And we have [200+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). *** Please try examples first (bottom of page) *** (edit them to use your question). Demo limited to ctxlen {ctx_limit}.")
|
148 |
with gr.Row():
|
149 |
with gr.Column():
|
150 |
-
prompt = gr.Textbox(lines=2, label="Prompt", value="Assistant:
|
151 |
token_count = gr.Slider(10, 333, label="Max Tokens", step=10, value=333)
|
152 |
temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
|
153 |
top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.3)
|
|
|
69 |
presencePenalty = 0.1,
|
70 |
countPenalty = 0.1,
|
71 |
):
|
72 |
+
print(ctx)
|
73 |
args = PIPELINE_ARGS(temperature = max(0.2, float(temperature)), top_p = float(top_p),
|
74 |
alpha_frequency = countPenalty,
|
75 |
alpha_presence = presencePenalty,
|
|
|
148 |
gr.Markdown(f"This is [RWKV-5 World v2](https://huggingface.co/BlinkDL/rwkv-5-world) with 1.5B params - a 100% attention-free RNN [RWKV-LM](https://github.com/BlinkDL/RWKV-LM). Supports all 100+ world languages and code. And we have [200+ Github RWKV projects](https://github.com/search?o=desc&p=1&q=rwkv&s=updated&type=Repositories). *** Please try examples first (bottom of page) *** (edit them to use your question). Demo limited to ctxlen {ctx_limit}.")
|
149 |
with gr.Row():
|
150 |
with gr.Column():
|
151 |
+
prompt = gr.Textbox(lines=2, label="Prompt", value="Assistant: ")
|
152 |
token_count = gr.Slider(10, 333, label="Max Tokens", step=10, value=333)
|
153 |
temperature = gr.Slider(0.2, 2.0, label="Temperature", step=0.1, value=1.0)
|
154 |
top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.3)
|