Spaces:
Build error
Build error
jcarbonnell
commited on
Commit
•
c415045
1
Parent(s):
2b360a3
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import
|
3 |
from summarizer import Summarizer
|
4 |
|
5 |
-
|
|
|
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():
|