test_text_app / app.py
noteldar's picture
Update app.py
df13dd1
raw
history blame
201 Bytes
from transformers import pipeline
import streamlit as st
generator = pipeline('text-generation', model='gpt2')
text = st.text_area('Enter Explanation')
if text:
out = generator(text)
st.json(out)