Spaces:
Runtime error
Runtime error
ethanlshen
commited on
Commit
•
5a6e4f1
1
Parent(s):
8b0fc91
Changed buttons to only show generations
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def update_options(input, num_tokens):
|
|
83 |
penalty=200)
|
84 |
print("Generated")
|
85 |
gens = alive_gens[0].reshape(n_drafts, -1)
|
86 |
-
return decode(tokenizer, gens[0]), decode(tokenizer, gens[1]), decode(tokenizer, gens[2])
|
87 |
|
88 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
89 |
gr.Markdown(
|
|
|
83 |
penalty=200)
|
84 |
print("Generated")
|
85 |
gens = alive_gens[0].reshape(n_drafts, -1)
|
86 |
+
return decode(tokenizer, gens[0])[len(input):], decode(tokenizer, gens[1])[len(input):], decode(tokenizer, gens[2])[len(input):]
|
87 |
|
88 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
89 |
gr.Markdown(
|