namantjeaswi commited on
Commit
52eeb31
·
1 Parent(s): 9929c3d

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,4 +37,5 @@ with st.form('my_form'):
37
  if submitted:
38
  #result = pipe(question, max_length=100)
39
  st.write(question)
40
- #st.write(result[0]['generated_text'])
 
 
37
  if submitted:
38
  #result = pipe(question, max_length=100)
39
  st.write(question)
40
+ #st.write(result[0]['generated_text'])
41
+ st.write(pipeline('text-generation', model=model_id)(question, max_length=100)[0]['generated_text'])