Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ if prompt := st.chat_input("Say Something", key="input_1", disabled=st.session_s
|
|
47 |
if prompt or st.session_state.state_chat_input:
|
48 |
if st.session_state.state_chat_input:
|
49 |
with st.spinner(text="Generating response..."):
|
50 |
-
model_inputs = tokenizer(
|
51 |
print(model_inputs)
|
52 |
generated_ids = model.generate(
|
53 |
**model_inputs,
|
|
|
47 |
if prompt or st.session_state.state_chat_input:
|
48 |
if st.session_state.state_chat_input:
|
49 |
with st.spinner(text="Generating response..."):
|
50 |
+
model_inputs = tokenizer(st.session_state.messages[-1]['content'], return_tensors="pt").to(model.device)
|
51 |
print(model_inputs)
|
52 |
generated_ids = model.generate(
|
53 |
**model_inputs,
|