Spaces:
Runtime error
Runtime error
Mel Nguyen (she/her)
commited on
Commit
•
c189ee5
1
Parent(s):
ffd31f3
changes
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ if st.button("Generate Text"):
|
|
43 |
else:
|
44 |
input_ids = encoded_prompt
|
45 |
|
46 |
-
gen_tokens = infer(encoded_prompt, max_length)
|
47 |
gen_text = tokenizer.batch_decode(gen_tokens)[0]
|
48 |
st.write(gen_text)
|
49 |
|
|
|
43 |
else:
|
44 |
input_ids = encoded_prompt
|
45 |
|
46 |
+
gen_tokens = infer(encoded_prompt, max_length, temperature, top_k, top_p)
|
47 |
gen_text = tokenizer.batch_decode(gen_tokens)[0]
|
48 |
st.write(gen_text)
|
49 |
|