Gpt2 / app.py
matt-le-kat's picture
Update app.py
ca5aee7
raw
history blame
259 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline('text-generation', model='facebook/opt-350m')
input = gr.Interface.TextBox()
output = gr.Interface.TextBox()
intf = gr.Interface(fn = pipe, inputs = input, outputs = output)
intf.launch()