Spaces:
Runtime error
Runtime error
File size: 258 Bytes
641e799 7fc4a44 641e799 7fc4a44 641e799 7fc4a44 641e799 |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from transformers import pipeline
pipe = pipeline('text-generation', model='facebook/blenderbot-1B-distill', device='cuda')
def prompt(text):
pipe(text)
iface = gr.Interface(fn=prompt, inputs="text", outputs="text")
iface.launch() |