karthickg12 commited on
Commit
6f7ec70
·
verified ·
1 Parent(s): eed95b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,8 +100,8 @@ def chat():
100
 
101
  h_s="\n".join(ch)
102
  i=st.input("enter")
103
- is=tokenizer.encode_plus(h_s,i,return_tensors="pt")
104
- outputs=model.generate(**is,max_length=60)
105
  response=tokenizer.decode(outputs[0],skip_special_tokens=True).strip()
106
  c_h.appned(i)
107
  c_h.append(response)
 
100
 
101
  h_s="\n".join(ch)
102
  i=st.input("enter")
103
+ i_s=tokenizer.encode_plus(h_s,i,return_tensors="pt")
104
+ outputs=model.generate(**i_s,max_length=60)
105
  response=tokenizer.decode(outputs[0],skip_special_tokens=True).strip()
106
  c_h.appned(i)
107
  c_h.append(response)