Spaces:
Runtime error
Runtime error
File size: 438 Bytes
6d92158 3060053 4e58ddc 3060053 4e58ddc 6d92158 ea1dd8e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from inductor import BartInductor
inductor = BartInductor()
def bart(text):
return inductor.generate(text)
iface = gr.Interface(fn=bart,
inputs=gr.inputs.Textbox(default='<mask> is the capital of <mask>.'),
outputs="text",
title="BART Inductor",
description="Enter a text prompt to generate text using BART.")
iface.launch()
|