Spaces:
Sleeping
Sleeping
Robert Castagna
commited on
Commit
·
5950d94
1
Parent(s):
7f1b0eb
streamlit write
Browse files
app.py
CHANGED
@@ -26,4 +26,4 @@ prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_genera
|
|
26 |
if st.button("generate response"):
|
27 |
|
28 |
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
29 |
-
|
|
|
26 |
if st.button("generate response"):
|
27 |
|
28 |
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
29 |
+
st.write(outputs[0]["generated_text"])
|