MSey commited on
Commit
bafdc64
·
verified ·
1 Parent(s): 1886f29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -18,6 +18,5 @@ context_len = len(contexted_ipnut)
18
  if user_input:
19
  with st.spinner('Generating response...'):
20
  response = pipe(contexted_ipnut)
21
- generated_text = response[0]['generated_text'][context_len:]
22
- st.write("Generated Text:")
23
- st.text(generated_text)
 
18
  if user_input:
19
  with st.spinner('Generating response...'):
20
  response = pipe(contexted_ipnut)
21
+ st.write("Response:")
22
+ st.text(response)