jcarbonnell commited on
Commit
c415045
1 Parent(s): 2b360a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import streamlit as st
2
- from transformers import pipeline
3
  from summarizer import Summarizer
4
 
5
- pipeline = pipeline(task='text-generation', model="DemocracyStudio/generate_nft_content")
 
6
  summarize=Summarizer()
7
 
8
  def main():
 
1
  import streamlit as st
2
+ from transformers import GPT2Tokenizer, GPT2LMHeadModel
3
  from summarizer import Summarizer
4
 
5
+ model=GPT2LMHeadModel.from_pretrained("DemocracyStudio/generate_nft_content"))
6
+ tokenizer=GPT2Tokenizer.from_pretrained("DemocracyStudio/generate_nft_content")
7
  summarize=Summarizer()
8
 
9
  def main():