kushan98 commited on
Commit
8b19034
1 Parent(s): 8a5c7b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import streamlit as st
2
  from transformers import pipeline
3
 
4
  def summarize_text(text):
5
- unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
6
- text_input = unmasker(text, do_sample=True)[0]['text_input']
7
  return text_input
8
 
9
  def main():
 
2
  from transformers import pipeline
3
 
4
  def summarize_text(text):
5
+ unmasker = pipeline('fill-mask', model='casarf/comment_model_test')
6
+ text_input = unmasker(text)
7
  return text_input
8
 
9
  def main():