Spaces:
Runtime error
Runtime error
from transformers import pipeline | |
import streamlit as st | |
generator = pipeline('text-generation', model='gpt2') | |
# generator = pipeline('sentiment-analysis') | |
text = st.text_area('Enter Query') | |
if text: | |
out = generator(text) | |
st.json(out) |