Spaces:
Build error
Build error
Commit
·
9cdcc2a
1
Parent(s):
fab69a3
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline, GPT2LMHeadModel, AutoTokenizer
|
3 |
-
|
4 |
|
5 |
generate = pipeline(task='text-generation', model=GPT2LMHeadModel.from_pretrained("DemocracyStudio/generate_nft_content"), tokenizer=AutoTokenizer.from_pretrained("DemocracyStudio/generate_nft_content"))
|
6 |
#summarize=Summarizer()
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline, GPT2LMHeadModel, AutoTokenizer
|
3 |
+
from summarizer import Summarizer
|
4 |
|
5 |
generate = pipeline(task='text-generation', model=GPT2LMHeadModel.from_pretrained("DemocracyStudio/generate_nft_content"), tokenizer=AutoTokenizer.from_pretrained("DemocracyStudio/generate_nft_content"))
|
6 |
#summarize=Summarizer()
|